|
@@ -101,8 +101,11 @@ class douyinAuthor():
|
|
|
s.mount('https://', HTTPAdapter(max_retries=3))
|
|
|
response = requests.request(method='GET', url=url, headers=headers, params=query)
|
|
|
body = response.content.decode()
|
|
|
+ if body == "":
|
|
|
+ Common.logger().info(f"请求获取body为空")
|
|
|
+ continue
|
|
|
+ Common.logger().info(f"请求获取body数据:{body}")
|
|
|
obj = json.loads(body)
|
|
|
-
|
|
|
has_more = True if obj.get('has_more', 0) == 1 else False
|
|
|
next_cursor = str(obj.get('max_cursor')) if has_more else None
|
|
|
data = obj.get('aweme_list', [])
|