|
@@ -66,7 +66,8 @@ class XNGHTecommend(object):
|
|
|
# id = 1245 # 妇女节
|
|
|
# id = 1248 # 二月二
|
|
|
# id = 1253 # 清明节
|
|
|
- for i in range(30):
|
|
|
+ i = 0
|
|
|
+ while True:
|
|
|
time.sleep(random.randint(1, 10))
|
|
|
url = "https://kapi.xiaoniangao.cn/activity/recommend_album_list"
|
|
|
payload = json.dumps({
|
|
@@ -104,6 +105,7 @@ class XNGHTecommend(object):
|
|
|
})
|
|
|
|
|
|
response = requests.request("POST", url, headers=headers, data=payload, proxies=tunnel_proxies())
|
|
|
+ i += 1
|
|
|
for index, video_obj in enumerate(response.json()['data']['list'], 1):
|
|
|
try:
|
|
|
self.aliyun_log.logging(
|