wangkun 1 year ago
parent
commit
b4f57b050e
1 changed files with 1 additions and 2 deletions
  1. 1 2
      douyin/douyin_recommend/__init__.py

+ 1 - 2
douyin/douyin_recommend/__init__.py

@@ -1,12 +1,11 @@
 import execjs
 import os
-
 from common.common import Common
 
 
 def get_xb(f_url, ua):
     js_path = os.path.abspath(os.path.dirname(os.getcwd()))
-    Common.logger(log_type="recommend", crawler="douyin").info(f"js_path:{js_path}")
+    Common.logger(log_type="recommend", crawler="douyin").info(f"js_path:{js_path}/piaoquan_crawler/douyin/xb.js")
     # with open(f'{js_path}/xb.js', 'r', encoding='utf-8') as f:
     with open(f'{js_path}/piaoquan_crawler/douyin/xb.js', 'r', encoding='utf-8') as f:
         douyin_js = f.read()