|
@@ -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()
|