diff --git a/README.md b/README.md index 2a9f75b..639f8d8 100644 --- a/README.md +++ b/README.md @@ -249,24 +249,24 @@ python TikTokCommand.py -h ``` windows用户: -.\TikTokCommand.exe -C True \ - -l https://live.douyin.com/759547612580 \ - -l https://v.douyin.com/BugmVVD/ \ - -l https://v.douyin.com/BugrFTN/ \ - -l https://v.douyin.com/B72pdU5/ \ - -l https://v.douyin.com/B72QgDw/ \ - -l https://v.douyin.com/AJp8D3f/ \ - -l https://v.douyin.com/B38oovu/ \ - -l https://v.douyin.com/S6YMNXs/ \ - -p /path/to/downdir \ - -M post \ - -M like \ - -M mix \ - --postnumber 5 \ - --likenumber 5 \ - --allmixnumber 1 \ - --mixnumber 5 \ - --musicnumber 5 \ +.\TikTokCommand.exe -C True ` + -l https://live.douyin.com/759547612580 ` + -l https://v.douyin.com/BugmVVD/ ` + -l https://v.douyin.com/BugrFTN/ ` + -l https://v.douyin.com/B72pdU5/ ` + -l https://v.douyin.com/B72QgDw/ ` + -l https://v.douyin.com/AJp8D3f/ ` + -l https://v.douyin.com/B38oovu/ ` + -l https://v.douyin.com/S6YMNXs/ ` + -p /path/to/downdir ` + -M post ` + -M like ` + -M mix ` + --postnumber 5 ` + --likenumber 5 ` + --allmixnumber 1 ` + --mixnumber 5 ` + --musicnumber 5 ` --cookie "msToken=xxx; ttwid=xxx; odin_tt=xxx; passport_csrf_token=xxx; sid_guard=xxx;" linux与mac用户: diff --git a/TikTokUtils.py b/TikTokUtils.py index 18c5e33..0041ecb 100644 --- a/TikTokUtils.py +++ b/TikTokUtils.py @@ -42,7 +42,7 @@ class Utils(object): 替换非法字符,缩短字符长度,使其能成为文件名 """ # 匹配 汉字 字母 数字 空格 - match = "([0-9A-Za-z\u4e00-\u9fa5]+)" + match = "([0-9A-Za-z\u4e00-\u9fa5 #_-]+)" result = re.findall(match, filenamestr)