Browse Source

调整小年糕推荐流请求次数

supeng 1 tuần trước cách đây
mục cha
commit
55a42f0367
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      spider/crawler_online/xiaoniangaotuijianliu.py

+ 2 - 1
spider/crawler_online/xiaoniangaotuijianliu.py

@@ -64,7 +64,8 @@ class XNGTJLRecommend(object):
         }
         data_rule = FsData()
         title_rule = data_rule.get_title_rule()
-        for i in range(3):
+        # for i in range(3):
+        for i in range(6):
             url = "http://8.217.192.46:8889/crawler/xiao_nian_gao_plus/recommend"
             payload = json.dumps({})
             response = requests.request("POST", url, headers=headers, data=payload)