temp定时任务修改
This commit is contained in:
34
schoolNewsServ/crontab/src/main/resources/appliaction.yml
Normal file
34
schoolNewsServ/crontab/src/main/resources/appliaction.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
crawler:
|
||||
python:
|
||||
path: C:/Python312/python.exe
|
||||
base:
|
||||
path: F:/Project/schoolNews/schoolNewsCrawler
|
||||
script:
|
||||
- name: xxx爬虫
|
||||
path: crawler/xxx.py
|
||||
method: xxx
|
||||
param: xxx
|
||||
output: xxx
|
||||
|
||||
crontab:
|
||||
items: #可供前端选择的定时任务列表
|
||||
- name: 人民日报新闻爬取
|
||||
methods: #爬取方式
|
||||
- name: 关键字搜索爬取
|
||||
class: org.xyzh.crontab.task.newsTask.NewsCrawlerTask
|
||||
path: crawler/xxx.py
|
||||
params:
|
||||
query: String #搜索关键字
|
||||
total: Integer #总新闻数量
|
||||
- name: 排行榜爬取
|
||||
class: org.xyzh.crontab.task.newsTask.NewsCrawlerTask
|
||||
path: crawler/xxx.py
|
||||
- name: 往日精彩头条爬取
|
||||
class: org.xyzh.crontab.task.newsTask.NewsCrawlerTask
|
||||
path: crawler/xxx.py
|
||||
params:
|
||||
startDate: String #开始日期
|
||||
endDate: String #结束日期
|
||||
isYestoday: Boolean #是否是昨天
|
||||
|
||||
|
||||
Reference in New Issue
Block a user