#!/bin/bash
cd /root/gov_crawler
: > /tmp/https7_run.log
for f in crawl_anlu.py crawl_jxdy_hjypj.py crawl_jxln.py crawl_shaowu.py crawl_xunwu.py crawl_xunwu_tzgg.py crawl_yantai.py crawl_zhcqhj.py; do
  echo "=== $f" >> /tmp/https7_run.log
  timeout 150 python3 "$f" > /tmp/h7_$f.log 2>&1
  echo "EXIT=$?" >> /tmp/https7_run.log
  tail -2 /tmp/h7_$f.log | cut -c1-120 >> /tmp/https7_run.log
done
echo ALLDONE >> /tmp/https7_run.log
