We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e89ae67 + 9c2ebd9 commit d508afdCopy full SHA for d508afd
douyin_pro_2.py
@@ -43,11 +43,14 @@ def get_video_urls(self, user_id):
43
html = json.loads(req.text)
44
for each in html['aweme_list']:
45
share_desc = each['share_info']['share_desc']
46
+ if os.name == 'nt':
47
+ for c in r'\/:*?"<>|':
48
+ share_desc = share_desc.replace(c, '')
49
unix_timestamp = each['create_time']
50
utc_time = datetime.fromtimestamp(unix_timestamp, timezone.utc)
51
local_time = utc_time.astimezone()
52
tc = local_time.strftime('%Y-%m-%d-%H-%M-%S')
- if '抖音-原创音乐短视频社区' == share_desc:
53
+ if share_desc in ['抖音-原创音乐短视频社区', 'TikTok']:
54
video_names.append(tc + '.mp4')
55
else:
56
video_names.append(tc + '-' + share_desc + '.mp4')
0 commit comments