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.
1 parent c7525c3 commit df91e6dCopy full SHA for df91e6d
douyin_pro_2.py
@@ -46,6 +46,11 @@ def get_video_urls(self, user_id):
46
uid = html['user_list'][0]['user_info']['uid']
47
nickname = html['user_list'][0]['user_info']['nickname']
48
unique_id = html['user_list'][0]['user_info']['unique_id']
49
+ if unique_id != user_id:
50
+ unique_id = html['user_list'][0]['user_info']['short_id']
51
+ else:
52
+ print('用户ID可能输入错误或无法搜索到此用户ID')
53
+ sys.exit()
54
share_user_url = 'https://www.amemv.com/share/user/%s' % uid
55
share_user = requests.get(share_user_url, headers=self.headers)
56
_dytk_re = re.compile(r"dytk: '(.+)'")
0 commit comments