Browse Source

福小顺修改异步处理

罗俊辉 1 năm trước cách đây
mục cha
commit
cd90e01281
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      spider/crawler_online/fuxiaoshun.py

+ 1 - 1
spider/crawler_online/fuxiaoshun.py

@@ -140,7 +140,7 @@ class FuXiaoShunRecommend(object):
         params = {"mark": "", "page": page_index}
         await asyncio.sleep(5)
         async with session.get(
-            url, headers=headers, params=params
+            url, headers=headers, params=params, proxy=tunnel_proxies()['https']
         ) as response:
             cryp_data = await response.json()
             data = json.loads(fxs_decrypt(cryp_data["data"]))