wangkun hace 2 años
padre
commit
0ed4b16333
Se han modificado 3 ficheros con 6 adiciones y 5 borrados
  1. 4 3
      README.MD
  2. 1 1
      main/process_offline.sh
  3. 1 1
      main/scheduling_main.sh

+ 4 - 3
README.MD

@@ -146,6 +146,8 @@ ps aux | grep run_gongzhonghao | grep -v grep | awk '{print $2}' | xargs kill -9
 nohup python3 -u /data5/piaoquan_crawler/weixinzhishu/weixinzhishu_main/weixinzhishu_inner_long.py >>/data5/piaoquan_crawler/weixinzhishu/logs/nohup_inner_long.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 &
 nohup python3 -u /data5/piaoquan_crawler/weixinzhishu/weixinzhishu_main/weixinzhishu_out.py >>/data5/piaoquan_crawler/weixinzhishu/logs/nohup_out.log 2>&1 &
 nohup python3 -u /data5/piaoquan_crawler/weixinzhishu/weixinzhishu_main/weixinzhishu_out.py >>/data5/piaoquan_crawler/weixinzhishu/logs/nohup_out.log 2>&1 &
 nohup python3 -u /data5/piaoquan_crawler/weixinzhishu/weixinzhishu_main/weixinzhishu_inner_sort.py >>/data5/piaoquan_crawler/weixinzhishu/logs/nohup_inner_sort.log 2>&1 &
 nohup python3 -u /data5/piaoquan_crawler/weixinzhishu/weixinzhishu_main/weixinzhishu_inner_sort.py >>/data5/piaoquan_crawler/weixinzhishu/logs/nohup_inner_sort.log 2>&1 &
+获取 wechat_key 设备: Mac Air 
+cd ~ && source ./base_profile && ps aux | grep weixinzhishu | grep -v grep | awk '{print $2}' | xargs kill -9 && cd /Users/piaoquan/Desktop/piaoquan_crawler && nohup python3 -u weixinzhishu/weixinzhishu_key/search_key_mac.py >> weixinzhishu/nohup.log 2>&1 &
 线下调试
 线下调试
 抓取今日微信指数
 抓取今日微信指数
 python3 /Users/wangkun/Desktop/crawler/piaoquan_crawler/weixinzhishu/weixinzhishu_main/run_weixinzhishu_today_score.py
 python3 /Users/wangkun/Desktop/crawler/piaoquan_crawler/weixinzhishu/weixinzhishu_main/run_weixinzhishu_today_score.py
@@ -154,8 +156,7 @@ ps aux | grep WeChat.app
 ps aux | grep run_weixinzhishu
 ps aux | grep run_weixinzhishu
 ps aux | grep weixinzhishu | grep -v grep | awk '{print $2}' | xargs kill -9
 ps aux | grep weixinzhishu | grep -v grep | awk '{print $2}' | xargs kill -9
 ps aux | grep 微信 | grep -v grep | awk '{print $2}' | xargs kill -9
 ps aux | grep 微信 | grep -v grep | awk '{print $2}' | xargs kill -9
-获取 wechat_key 设备: Mac Air 
-cd ~ && source ./base_profile && ps aux | grep weixinzhishu | grep -v grep | awk '{print $2}' | xargs kill -9 && cd /Users/piaoquan/Desktop/piaoquan_crawler && nohup python3 -u weixinzhishu/weixinzhishu_key/search_key_mac.py >> weixinzhishu/nohup.log 2>&1 &
+
 ```
 ```
 
 
 
 
@@ -199,7 +200,7 @@ ps aux | grep run_suisuiniannianyingfuqi | grep -v grep | awk '{print $2}' | xar
 #### 刚刚都传小程序
 #### 刚刚都传小程序
 ```commandline
 ```commandline
 MacAir 设备, crontab定时任务
 MacAir 设备, crontab定时任务
-* * * * * /bin/sh /Users/piaoquan/Desktop/crawler/piaoquan_crawler/main/process_offline.sh "offline"
+* * * * * /bin/sh /Users/piaoquan/Desktop/piaoquan_crawler/main/process_offline.sh "offline"
 线下调试
 线下调试
 cd /Users/wangkun/Desktop/crawler/piaoquan_crawler
 cd /Users/wangkun/Desktop/crawler/piaoquan_crawler
 sh ./main/process_offline.sh "dev"
 sh ./main/process_offline.sh "dev"

+ 1 - 1
main/process_offline.sh

@@ -8,7 +8,7 @@ if [ ${env} = "dev" ];then
   python=python3
   python=python3
   log_path=${piaoquan_crawler_dir}main/main_logs/process-$(date +%Y-%m-%d).log
   log_path=${piaoquan_crawler_dir}main/main_logs/process-$(date +%Y-%m-%d).log
 else
 else
-  piaoquan_crawler_dir=/Users/piaoquan/Desktop/crawler/piaoquan_crawler/
+  piaoquan_crawler_dir=/Users/piaoquan/Desktop/piaoquan_crawler/
 #  profile_path=/etc/profile
 #  profile_path=/etc/profile
   profile_path=./base_profile
   profile_path=./base_profile
   python=python3
   python=python3

+ 1 - 1
main/scheduling_main.sh

@@ -18,7 +18,7 @@ elif [ ${env} = "--env=prod" ];then
   profile_path=/etc/profile
   profile_path=/etc/profile
   python=python
   python=python
 elif [ ${env} = "--env=offline" ];then
 elif [ ${env} = "--env=offline" ];then
-  piaoquan_crawler_dir=/Users/piaoquan/Desktop/crawler/piaoquan_crawler/
+  piaoquan_crawler_dir=/Users/piaoquan/Desktop/piaoquan_crawler/
   profile_path=./base_profile
   profile_path=./base_profile
   node_path=/usr/local/bin/node
   node_path=/usr/local/bin/node
   python=python3
   python=python3