wangkun пре 2 година
родитељ
комит
7a6e04a29b
1 измењених фајлова са 8 додато и 2 уклоњено
  1. 8 2
      xigua/xigua_search/xigua_search.py

+ 8 - 2
xigua/xigua_search/xigua_search.py

@@ -643,8 +643,14 @@ class XiguaSearch:
         while True:
 
             signature = cls.random_signature()
-            url = "https://www.ixigua.com/api/searchv2/complex/{}/{}?order_type=publish_time&click_position=new".format(
-                quote(search_word), offset, signature)
+            # url = "https://www.ixigua.com/api/searchv2/complex/{}/{}?order_type=publish_time&click_position=new".format(
+            #     quote(search_word), offset, signature)
+            url = f'"https://www.ixigua.com/api/searchv2/complex/{search_word}/{offset}?' \
+                  f'search_id=20230504153557F02E476476DC6A8AA64D&' \
+                  f'aid=1768&' \
+                  f'msToken=poapmifgjsl8P93vkl7eTAiFxXO-qOaE9Zs1S8nMxD5r4fkgJ56J8mC5p8MCp-WvX7rptUfCqbnfHE2GUMcs3ifN5haGBCcWXez6-wJJiLEmZ_RNn-w0moYj8ar3Cg==&' \
+                  f'X-Bogus=DFSzswSO442ANnZhtCAL4em4pIDT&' \
+                  f'_signature={signature}"'
 
             headers = {
                 'referer': 'https://www.ixigua.com/search/{}/?logTag=594535e3690f17a88cdb&tab_name=search'.format(