Selaa lähdekoodia

update leka modify 10.09.1

lei.chen 2 kuukautta sitten
vanhempi
commit
b5142c3779
2 muutettua tiedostoa jossa 7 lisäystä ja 6 poistoa
  1. 6 5
      leka_spider/settings.py
  2. 1 1
      leka_spider/start_leka_spider.py

+ 6 - 5
leka_spider/settings.py

@@ -17,7 +17,7 @@ logger.add("./logs/{time:YYYYMMDD}.log", encoding='utf-8', rotation="00:00",
 #     "User-Agent": "Dart/3.5 (dart:io)",
 #     "Accept-Encoding": "gzip",
 #     "Content-Type": "application/json",
-#     "deviceid": "06609f63-1a0c-46c2-9f61-9acebe289e79",
+#     # "deviceid": "06609f63-1a0c-46c2-9f61-9acebe289e79",
 #     "brand": "Redmi",
 #     "os": "android",
 #     "content-type": "application/json; charset=utf-8",
@@ -26,7 +26,7 @@ logger.add("./logs/{time:YYYYMMDD}.log", encoding='utf-8', rotation="00:00",
 #     "theme": "dark",
 #     "lang": "zh",
 #     "verse-ua": "d7b3b338008806f1b20427173b983e29",
-#     "version": "2.1.0",
+#     "version": "2.5.3",
 #     "isphysicaldevice": "true",
 #     "cid": "02931506",
 #     "sktime": "1752115525048",
@@ -35,6 +35,7 @@ logger.add("./logs/{time:YYYYMMDD}.log", encoding='utf-8', rotation="00:00",
 HEADERS = {
     "user-agent": "Dart/3.5 (dart:io)",
     "deviceid": "039a7103-2540-4d67-b155-ae08b17b757f",
+    "Content-Type": "application/json",
     "accept-encoding": "gzip",
     "brand": "google",
     "os": "android",
@@ -43,14 +44,14 @@ HEADERS = {
     "systemversion": "30",
     "theme": "light",
     "lang": "zh",
-    "verse-ua": "a4cf6f74481fc2932d886ea2d7c58561",
+    "verse-ua": "073497c3b8dc373265afd1bbd3155ad0",
     "version": "2.5.3",
     # "content-length": "63",
     # "host": "api.luckycards.com.cn",
     "isphysicaldevice": "true",
-    "sktime": "1758881372138",
+    "sktime": "1759143631144",
     "cid": "53780516",
-    "sk": "b75cdd7a76115d838a1ec3c6388973f5" # 每次版本变化 也需要修改
+    "sk": "64bd2bfb1c259353a394a5c6241f6762" # 每次版本变化 也需要修改
 }
 
 

+ 1 - 1
leka_spider/start_leka_spider.py

@@ -32,7 +32,7 @@ def schedule_task():
     # login_main()
     # time.sleep(5)
 
-    run_threaded(leka_main, log=logger)
+    # run_threaded(leka_main, log=logger)
     # run_threaded(leka_history_main, log=logger)
 
     # 每天  定时更新token