update start.sh

This commit is contained in:
mshe 2026-05-28 15:35:40 +08:00
parent dbfb121f43
commit ba51bd9efd
1 changed files with 8 additions and 8 deletions

View File

@ -1,13 +1,13 @@
#!/bin/bash
spider=$1
if [ "$spider" = "01" ]; then
shell_name="china_net.py"
elif [ "$spider" = "02" ]; then
shell_name="mail_qq.py"
spider_code=$1
echo "爬虫代码:$spider_code"
if [ "$spider_code" = "01" ]; then
spider_name="china_net.py"
elif [ "$spider_code" = "02" ]; then
spider_name="mail_qq.py"
else
echo "爬虫名称错误"
exit -1
fi
.venv/bin/python3.12 "spider/$shell_name"
echo "爬虫名称:$spider_name"
.venv/bin/python3.12 "spider/$spider_name"