Jelajahi Sumber

update weixinzhishu

wangkun 2 tahun lalu
induk
melakukan
ba4c74a135
2 mengubah file dengan 4 tambahan dan 2 penghapusan
  1. 3 1
      README.MD
  2. 1 1
      weixinzhishu/weixinzhishu_score/weixinzhishu_today_score.py

+ 3 - 1
README.MD

@@ -137,8 +137,10 @@ ps aux | grep run_gongzhonghao | grep -v grep | awk '{print $2}' | xargs kill -9
 
 #### 微信指数
 ```commandline
-获取站外标题, crontab定时脚本, 每天 12 点运行一次
+获取站外标题, crontab定时脚本, 每天 12:00:00 点运行一次
 00 12 * * * cd /data5/piaoquan_crawler/ && /root/anaconda3/bin/python weixinzhishu/weixinzhishu_main/run_weixinzhishu_hot_search.py >>weixinzhishu/logs/nohup-hot-search.log 2>&1 &
+获取站外热词微信指数, crontab定时脚本, 每天 12:30:00 点运行一次
+30 12 * * * cd /data5/piaoquan_crawler/ && /root/anaconda3/bin/python weixinzhishu/weixinzhishu_main/run_weixinzhishu_today_score.py >>weixinzhishu/logs/today-score.log 2>&1 &
 获取微信指数, crontab定时脚本, 每天 08:00:00 20:00:00 各运行一次
 00 08,20 * * * cd /data5/piaoquan_crawler/ && /root/anaconda3/bin/python weixinzhishu/weixinzhishu_main/run_weixinzhishu_score.py >>weixinzhishu/logs/nohup-score.log 2>&1 &
 nohup python3 -u /data5/piaoquan_crawler/weixinzhishu/weixinzhishu_main/weixinzhishu_inner_long.py >>/data5/piaoquan_crawler/weixinzhishu/logs/nohup_inner_long.log 2>&1 &

+ 1 - 1
weixinzhishu/weixinzhishu_score/weixinzhishu_today_score.py

@@ -43,7 +43,7 @@ class TodayScore:
     @classmethod
     def get_today_words(cls, log_type, crawler, env):
         try:
-            if env == "dev:":
+            if env == "dev":
                 url = 'http://testhot-words-internal.piaoquantv.com/hot/word/getTodayWords'
             else:
                 url = "http://hot-words-internal.piaoquantv.com/hot/word/getTodayWords"