Skip to content

Commit 9c2ebd9

Browse files
authored
windows only
1 parent 2053929 commit 9c2ebd9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

douyin_pro_2.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ def get_video_urls(self, user_id):
4343
html = json.loads(req.text)
4444
for each in html['aweme_list']:
4545
share_desc = each['share_info']['share_desc']
46-
for c in r'\/:*?"<>|':
47-
share_desc = share_desc.replace(c, '')
46+
if os.name == 'nt':
47+
for c in r'\/:*?"<>|':
48+
share_desc = share_desc.replace(c, '')
4849
unix_timestamp = each['create_time']
4950
utc_time = datetime.fromtimestamp(unix_timestamp, timezone.utc)
5051
local_time = utc_time.astimezone()

0 commit comments

Comments
 (0)