Bläddra i källkod

Merge branch 'master' into 2025-04-23-add-category-to-cold-start-pool

luojunhui 16 timmar sedan
förälder
incheckning
acbe74505c

+ 3 - 3
coldStartTasks/crawler/channels/blogger.py

@@ -6,7 +6,7 @@ import requests
 import json
 import json
 
 
 from applications.api import WechatChannelAPI
 from applications.api import WechatChannelAPI
-from config import gewe_token, gewe_app_id
+from config import gewe_token, gewe_app_id, gewe_base_url
 
 
 
 
 def get_channel_account_videos(user_id, last_buffer=""):
 def get_channel_account_videos(user_id, last_buffer=""):
@@ -14,9 +14,9 @@ def get_channel_account_videos(user_id, last_buffer=""):
     get channel account videos
     get channel account videos
     """
     """
     channel_api = WechatChannelAPI(
     channel_api = WechatChannelAPI(
-        base_url='http://api.geweapi.com',
+        base_url=gewe_base_url,
         token=gewe_token,
         token=gewe_token,
         app_id=gewe_app_id
         app_id=gewe_app_id
     )
     )
     result = channel_api.get_channel_video_list(user_id, last_buffer)
     result = channel_api.get_channel_video_list(user_id, last_buffer)
-    return result
+    return result

+ 2 - 2
coldStartTasks/crawler/channels/search.py

@@ -5,7 +5,7 @@
 from typing import Dict
 from typing import Dict
 
 
 from applications.api import WechatChannelAPI
 from applications.api import WechatChannelAPI
-from config import gewe_token, gewe_app_id
+from config import gewe_token, gewe_app_id, gewe_base_url
 
 
 
 
 def search_in_wechat_channel(
 def search_in_wechat_channel(
@@ -26,7 +26,7 @@ def search_in_wechat_channel(
     :return: result_list
     :return: result_list
     """
     """
     channel_api = WechatChannelAPI(
     channel_api = WechatChannelAPI(
-        base_url='http://api.geweapi.com',
+        base_url=gewe_base_url,
         token=gewe_token,
         token=gewe_token,
         app_id=gewe_app_id
         app_id=gewe_app_id
     )
     )

+ 1 - 0
config/__init__.py

@@ -111,6 +111,7 @@ deep_seek_api_key_byte_dance = '5e275c38-44fd-415f-abcf-4b59f6377f72'
 #GeWe
 #GeWe
 gewe_token = "d3fb918f-0f36-4769-b095-410181614231"
 gewe_token = "d3fb918f-0f36-4769-b095-410181614231"
 gewe_app_id = "wx_GKpVW8xfEhcaxMIK9sSm6"
 gewe_app_id = "wx_GKpVW8xfEhcaxMIK9sSm6"
+gewe_base_url = "http://218.78.116.24:10884"
 
 
 # sph decrypt key
 # sph decrypt key
 decrypt_key_path = 'applications/so/libsph_decrypt.so'
 decrypt_key_path = 'applications/so/libsph_decrypt.so'