孙永军 1 year ago
parent
commit
7bed5d03be
4 changed files with 4 additions and 4 deletions
  1. 1 1
      Dockerfile
  2. 1 1
      apply.sh
  3. 1 1
      douyin_spider.yml
  4. 1 1
      spider.py

+ 1 - 1
Dockerfile

@@ -17,7 +17,7 @@ RUN echo "Asia/Shanghai" > /etc/timezone
 ADD tmp/src.tar.gz /syj/
 RUN cd /syj && python3 -m pip install -U -r requirements.txt
 RUN playwright install chromium
-RUN playwright install msedge
+RUN #playwright install msedge
 RUN python3 -m pip install pyinstaller
 
 ENV PYTHONPATH "${PYTONPATH}:/syj"

+ 1 - 1
apply.sh

@@ -1,4 +1,4 @@
-version="1.3"
+version="1.4"
 docker build -t registry.cn-chengdu.aliyuncs.com/cxzx-spider/douyin_spider:$version .
 docker push registry.cn-chengdu.aliyuncs.com/cxzx-spider/douyin_spider:$version
 sed -i "s!{ { image } }!registry\.cn-chengdu\.aliyuncs\.com/cxzx-spider/douyin_spider:$version!g" *.yml

+ 1 - 1
douyin_spider.yml

@@ -3,7 +3,7 @@ kind: CronJob
 metadata:
   name: douyin-spider
 spec:
-  schedule: "55 8-22 * * *"
+  schedule: "8 8-22 * * *"
   jobTemplate:
     spec:
       template:

+ 1 - 1
spider.py

@@ -535,7 +535,7 @@ class Douyin(object):
                 self.pageDown += 1
                 logger.error("重试 + 1")
         self.save()  # 保存结果
-        self.save1()
+        # self.save1()
         self.page.close()