Browse Source

Merge branch '2025-03-03-luojunhui-update-recommend-url' of luojunhui/LongArticlesJob into master

luojunhui 3 tháng trước cách đây
mục cha
commit
bbbb944527
1 tập tin đã thay đổi với 5 bổ sung6 xóa
  1. 5 6
      applications/wxSpiderApi.py

+ 5 - 6
applications/wxSpiderApi.py

@@ -116,12 +116,11 @@ class WeixinSpider(object):
         :return:
         """
         url = "http://datapi.top/wxapi/relatedarticle"
-        payload = json.dumps(
-            {"content_link": content_link, "token": "401e4d3c85068bb5"}
-        )
-        response = requests.request(
-            "POST", url=url, headers=cls.headers, data=payload, timeout=120
-        )
+        payload = {
+            'url': content_link,
+            'token': '401e4d3c85068bb5'
+        }
+        response = requests.request("POST", url, headers={}, data=payload, timeout=120)
         log(
             task="article_association_crawler",
             function="get_recommend_articles_v2",