-
Notifications
You must be signed in to change notification settings - Fork 6
/
public.yaml
546 lines (506 loc) · 15.5 KB
/
public.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
global:
# The smarthost and SMTP sender used for mail notifications.
smtp_smarthost: 'host:587'
smtp_auth_username: 'username'
smtp_auth_password: 'password'
alert_receivers: 'myself'
daily_report_receivers: 'myself'
store: 'trackupdates.sqlite'
jobs:
- name: 'huihui'
view: 惠惠网
cron: '1|0'
url:
test_target: 'testdata/haitao.worthBuying'
target: 'http://www.huihui.cn/haitao/worthBuying?tag=ALL&page={page}'
query_parameter:
page:
- type: string
value: 1,2,3,4,5,6,7,8,9,10
parser: 'huihui'
- name: doubanread
view: 豆瓣阅读
cron: '2|0'
url:
test_target: testdata/douban.htm
target: '{target_url}'
withjs: true
query_parameter:
target_url:
- type: string
value: https://read.douban.com/category/?kind=102
# TODO: with Chinese Char
# - type: distinct
# value: auth_url
- type: distinct
value: category_url
- type: distinct
value: category_1_url
- type: distinct
value: category_2_url
parser: doubanread
- name: 'martcoding'
view: 码市
cron: '3|0'
url:
test_target: 'testdata/martcoding'
target: 'https://mart.coding.net/projects?type=&status=5&role_type_id='
parser: 'martcoding'
update:
# receiver: 'myself'
match:
title: 'python,爬虫,数据'
- name: 'githubblog'
view: GitHub Blog
cron: '*|0'
url:
test_target: 'testdata/githubblog'
target: 'https://github.blog'
parser: 'githubblog'
- name: 'cncfblog'
view: CNCF Blog
cron: '4|10'
url:
type: rss
test_target: 'testdata/cncfblog'
target: https://www.cncf.io/feed/
parser: 'cncfblog'
- name: 'coolshell'
view: CoolShell
cron: '5|10'
url:
type: rss
target: https://coolshell.cn/feed
parser: 'coolshell'
- name: 'python'
view: GitHub Trending
cron: '*|*/10'
url:
test_target: 'testdata/python'
target: 'https://github.com/trending/{lang}?since=daily'
query_parameter:
lang:
- type: string
value: ''
- type: distinct
value: lang
parser: 'python'
update:
# receiver: 'myself'
- name: 'githubrecommend'
view: GitHub 推荐
cron: '5|0'
url:
target: 'http://www.github.com/'
parser: 'githubrecommend'
- name: 'infoq'
view: InfoQ
cron: '4|0'
url:
test_target: 'testdata/infoqnews'
target: 'http://www.infoq.com/cn/news'
parser: 'infoq'
update:
# receiver: 'myself'
match:
title: 'kubernetes,docker,large scale'
- name: 'jianshu'
view: 简书
cron: '*|*/15'
url:
test_target: 'testdata/jianshu'
target: '{targeturl}'
query_parameter:
targeturl:
- type: string
value: http://www.jianshu.com/
# - type: distinct
# value: tag_url
# - type: distinct
# value: auth_url
parser: 'jianshu'
update:
# receiver: 'myself'
match:
title: 'kubernetes,docker,large scale'
- name: 'shuimujob'
view: 水木工作版
cron: '3|30'
url:
test_target: 'testdata/shuimujob'
target: 'http://www.newsmth.net/nForum/board/Career_Upgrade?ajax&p={p}'
query_parameter:
p:
- type: string
value: 1,2,3
parser: 'shuimujob'
- name: 'blogkubernetes'
view: Kubernetes Blog
cron: '22|40'
url:
type: rss
test_target: 'testdata/kubernetes_blog'
target: https://kubernetes.io/feed.xml
parser: 'blogkubernetes'
- name: 'blograndylu'
view: Randy Lu Blog
cron: '5|40'
url:
type: rss
target: https://lutaonan.com/rss.xml
parser: 'blograndylu'
- name: 'blogcoreos'
view: CoreOS Blog
url:
test_target: 'testdata/coreosblog'
target: 'https://coreos.com/blog'
parser: 'blogcoreos'
update:
receiver: 'myself'
- name: 'hackernews'
view: Hacker News
url:
test_target: 'testdata/hackernews'
target: 'https://news.ycombinator.com/newest'
parser: 'hackernews'
update:
# receiver: 'myself'
match:
title: 'kubernetes,docker,large scale'
- name: 'pythonbole'
view: 伯乐在线
url:
test_target: 'testdata/pythonbole'
target: 'http://python.jobbole.com/all-posts/page/{pagenum}'
query_parameter:
pagenum:
- type: range
from: 1
to: 2
parser: 'pythonbole'
update:
# receiver: 'myself'
- name: 'byrtopten'
view: 北邮人论坛十大
url:
test_target: 'testdata/topten'
target: 'https://bbs.byr.cn/rss/topten'
parser: 'byrtopten'
update:
# receiver: 'myself'
- name: 'golden-price'
view: 黄金价格
url:
test_target: 'testdata/golden'
target: 'http://www.sge.com.cn/'
parser: 'golden-price'
update:
receiver: 'myself'
- name: 'god-film'
view: 电影天堂
cron: '4|30'
url:
test_target: 'testdata/god-film'
target: 'http://www.dytt8.net/'
parser: 'god-film'
parsers:
- name: 'huihui'
base_url: 'http://www.huihui.cn'
base_xpath:
- "//div[@node-type='slideItem']"
- "//li[@class='item']"
attr:
url: 'h3/a/@href'
title: 'h3/a'
desc: "div[@class='price']"
format:
markdown: '[{title}]({url}), {desc}'
html: '<p><a target="_blank" href="{url}">{title}</a> {desc}</p>'
- name: doubanread
base_url: https://read.douban.com
base_xpath:
- //li[contains(@class, 'works-item')]
attr:
url: div/div[@class='info']/h4/a/@href
title: div/div[@class='info']/h4/a/@title
img: div/div[1]/a/img/@src
auth: div/div[@class='info']/div[@class='author']/a/span/span
auth_url: div/div[@class='info']/div[@class='author']/a/@href
intro: "div/div[@class='info']/div[@class='intro ']/span/span"
rating: div/div[@class='info']/div[@class='extra-info']/div[@class='sticky-info']/div[@class='rating']/span
rating_amount: div/div[@class='info']/div[@class='extra-info']/div[@class='sticky-info']/div[@class='rating']/a
rating_amount_url: div/div[@class='info']/div[@class='extra-info']/div[@class='sticky-info']/div[@class='rating']/a/@href
words: div/div[@class='info']/div[@class='extra-info']/div[@class='sticky-info']/span[2]
category: div/div[@class='info']/div[@class='extra-info']/div[@class='sticky-info']/a
category_url: div/div[@class='info']/div[@class='extra-info']/div[@class='sticky-info']/a/@href
category_1: div/div[@class='info']/div[@class='extra-info']/div[@class='flexible-info']/span[1]/a
category_1_url: div/div[@class='info']/div[@class='extra-info']/div[@class='flexible-info']/span[1]/a/@href
category_2: div/div[@class='info']/div[@class='extra-info']/div[@class='flexible-info']/span[2]/a
category_2_url: div/div[@class='info']/div[@class='extra-info']/div[@class='flexible-info']/span[2]/a/@href
original_price: div/div[@class='info']/span[@class='sale']/span/s[@class='original-price']
discount_price: div/div[@class='info']/span[@class='sale']/span/span[@class='discount-price']
format:
markdown: '[{title}]({url}) <br> 作者:[{auth}]({auth_url}), 评分:{rating},总评分:[{rating_amount}]({rating_amount_url}),总字数:{words},分类:[{category}]({category_url}) [{category_1}]({category_1_url}) [{category_2}]({category_2_url}) <br> 原价:{original_price},打折:{discount_price} <br> {intro}'
- name: 'golden-price'
base_url: 'http://www.sge.com.cn/'
base_xpath:
- "//div[@class='dataStatistics']"
attr:
url: 'div/span'
date: 'div/span'
sham: 'div/div/ul/li[1]/p'
shamp: 'div/div/ul/li[1]/span'
shpm: 'div/div/ul/li[2]/p'
shpmp: 'div/div/ul/li[2]/span'
users: 'div/div/ul/li[3]/p'
userscount: 'div/div/ul/li[3]/span'
user: 'div/div/ul/li[4]/p'
usercount: 'div/div/ul/li[4]/span'
format:
markdown: '{date}<br>{sham}: {shamp}<br>{shpm}: {shpmp}<br>{users}: {userscount}<br>{user}: {usercount}'
- name: 'god-film'
base_url: 'http://www.dytt8.net/'
base_xpath:
- "//div[@class='co_content2']/ul/a"
- //tr/td/a[2]
attr:
url: '@href'
title: '.'
format:
markdown: '[{title}]({url}) , {_crawl_time}'
- name: 'martcoding'
base_url: 'https://mart.coding.net'
base_xpath:
- "//div[@class='item-content']"
attr:
url: 'a/@href'
desc: "a/figure/div[@class='description']/div"
title: "div/div[@class='detail']/div[@class='name']/a"
price: "div/div[@class='detail']/div[@class='price']/span/span"
status: "div/div[@class='detail']/div[@class='price']/span/a/button"
format:
markdown: '[{status}: {title}]({url}), {price} <br> {desc}'
html: '<p><a href="{url}">{status}: {title}</a> {price}, {desc}</p>'
- name: 'githubblog'
base_url: 'https://github.blog'
base_xpath:
- "//article[@class='post-item d-flex flex-column flex-md-row mb-8 px-sm-0']"
attr:
url: div[1]/a/@href
title: div[2]/h4/a
pubdate: div[1]/a/time/@datetime
article-date: div[1]/a/time
tag: div[2]/ul
article-body: div[2]/div/p
article-author: div[2]/a/p
article-author_url: div[2]/a/@href
article-author_image: div[2]/a/div/img/@src
format:
markdown: '[{title}]({url}) <br> {article-date} {article-author} <br> {article-body}'
- name: 'cncfblog'
base_url: 'https://www.cncf.io/author'
base_xpath:
- //entries
attr:
url: links/href
title: title
pubdate: published
article-date: published
tag: tags/term
article-body: content/value/@RAW
article-author: author
article-author_url: author
article-author_image: author
format:
markdown: '[{title}]({url}) <br> {article-date} {article-author} <br> {article-body}'
- name: 'coolshell'
base_url: https://coolshell.cn
base_xpath:
- //entries
attr:
url: links/href
title: title
pubdate: published
article-date: published
tag: tags/term
article-body: content/value/@RAW
article-author: author
article-author_url: author
article-author_image: author
format:
markdown: '[{title}]({url}) <br> {article-date} {article-author} <br> {article-body}'
- name: 'blograndylu'
base_url: https://lutaonan.com
base_xpath:
- //entries
attr:
url: links/href
title: title
pubdate: published
article-date: published
tag: tags/term
article-body: content/value/@RAW
article-author: author
article-author_url: author
article-author_image: author
format:
markdown: '[{title}]({url}) <br> {article-date} {article-author} <br> {article-body}'
- name: 'python'
base_url: 'https://github.com'
base_xpath:
- //article[@class="Box-row"]
attr:
url: 'h1/a/@href'
repo: 'h1/a'
desc: "p"
lang: "div/span/span[@itemprop='programmingLanguage']"
# star: "div/a[@aria-label='Stargazers']"
star: "div[@class='f6 text-gray mt-2']/a[1]"
# fork: "div/a[@aria-label='Forks']"
fork: "div[@class='f6 text-gray mt-2']/a[2]"
today: "div/span[@class='d-inline-block float-sm-right']"
format:
markdown: '[{lang}: {repo}]({url}) <br> star: {star}, fork: {fork}, today-star: {today} <br> {desc}'
html: '<p><a href="{url}">{lang}: {repo}</a></p></p><p>start: {star}, fork: {fork}, today-star: {today}</p><p>{desc}</p>'
- name: githubrecommend
base_url: http://www.github.com
base_xpath:
- //div[@class="not-found-class"]
attr:
url: not-found-class
article-image_url: not-found-class
status: not-found-class
title: not-found-class
- name: infoq
base_url: http://www.infoq.com
base_xpath:
- //div[@class="news_type_block"]
attr:
url: h2/a/@href
title: h2/a/@title
auth: span[2]/span[1]/span/a
auth_url: span[2]/span[1]/span/a/@href
transauth: span[2]/span[2]/span/a
transauth_url: span[2]/span[2]/span/a/@href
desc: p[1]
format:
markdown: '[{title}]({url}) <br> 作者:[{auth}]({auth_url}),译者:[{transauth}]({transauth_url}) <br> {desc}'
- name: 'registration'
base_url: 'http://www.i-tra.org'
base_xpath:
- "//div[@class='evt']"
attr:
url: 'h2/a/@href'
name: 'h2/a'
registration: 'ul[1]/li[2]'
location: 'ul[2]/li[2]'
dateofevent: 'ul[3]/li[2]'
distance: 'ul[4]/li[2]'
heightgainloss: 'ul[5]/li[2]'
# below 3 attr might miss or disorder
endurancepoints: 'ul[6]/li[2]'
mountain: 'ul[7]/li[2]'
finishercriteria: 'ul[8]/li[2]'
- name: 'jianshu'
base_url: 'http://www.jianshu.com'
base_xpath:
- "//li/div[@class='content']"
attr:
url: "a/@href"
title: "a[@class='title']"
abstract: "p[@class='abstract']"
tag: "div[@class='meta']/a[@class='collection-tag']"
tag_url: "div[@class='meta']/a[@class='collection-tag']/@href"
reads: "div[@class='meta']/a[2]"
comments: "div[@class='meta']/a[2]"
like: "div[@class='meta']/span[1]"
money: "div[@class='meta']/span[2]"
auth: div[@class='meta']/a[@class='nickname']
auth_url: div[@class='meta']/a[@class='nickname']/@href
shared_at: "div[@class='author']/div[@class='name']/span/@data-shared-at"
format:
markdown: '[{title}]({url}) <br> 阅读:{reads}, 评论:{comments}, 赞:{like}, 赞赏:{money},分享: {shared_at} ,作者: [{auth}]({auth_url}) 分类: [{tag}]({tag_url}), <br> {abstract}'
- name: 'shuimujob'
base_url: 'http://www.newsmth.net'
base_xpath:
- "//tbody/tr"
attr:
url: "td[@class='title_9']/a/@href"
title: "td[@class='title_9']/a"
time: "td[@class='title_10'][1]"
auth: "td[@class='title_12'][1]/a"
auth_url: "td[@class='title_12'][1]/a/@href"
reply_count: "td[@class='title_11 middle'][3]"
reply_time: "td[@class='title_10'][2]/a"
reply_time_url: "td[@class='title_10'][2]/a/@href"
reply_auth: "td[@class='title_12'][2]/a"
reply_auth_url: "td[@class='title_12'][2]/a/@href"
format:
markdown: '[{title}]({url}) <br> 作者:{auth}, {time}, 回复: {reply_count}'
- name: 'blogkubernetes'
base_url: 'http://blog.kubernetes.io'
base_xpath:
- //entries
attr:
url: links/href
title: title
pubdate: published
article-date: published
tag: tags/term
article-body: summary/@RAW
article-author: author
article-author_url: author
article-author_image: author
format:
markdown: '[{title}]({url}) <br> {article-date} {article-author} <br> {article-body}'
- name: 'blogcoreos'
base_url: 'https://coreos.com'
base_xpath:
- "//div[@class='views-row']/div"
attr:
url: div/h2/a/@href
title: div/h2/a
article-author: div[@class='article-author']
article-date: div[@class='article-date']
article-image_url: div[@class='article-image']/img/@src
article-body-header: div[@class='article-body']/h3
article-body: div[@class='article-body']/p
format:
markdown: '[{title}]({url}) <br> {article-date}{article-author} <br> {article-body-header} <br> {article-body}'
- name: 'hackernews'
base_url: 'https://news.ycombinator.com/'
base_xpath:
- "//tr[@class='athing']"
attr:
url: "td[@class='title']/a/@href"
title: "td[@class='title']/a"
fromsite: "td[@class='title']/span/a/span"
fromsite_url: "td[@class='title']/span/a/@href"
format:
markdown: '[{title}]({url}) <br> from site: [{fromsite}]({fromsite_url})'
- name: 'pythonbole'
base_url: 'http://python.jobbole.com/'
base_xpath:
- "//div[@class='post floated-thumb']"
attr:
url: "div[@class='post-meta']/p/a[1]/@href"
title: "div[@class='post-meta']/p/a[1]/@title"
tag: "div[@class='post-meta']/p/a[2]"
tag_url: "div[@class='post-meta']/p/a[2]/@href"
format:
markdown: '[{title}]({url}), 类别: [{tag}]({tag_url})'
- name: 'byrtopten'
base_url: 'https://bbs.byr.cn'
base_xpath:
- "//channel/item"
attr:
url: "link"
title: "title"
description: "description"
format:
markdown: '[{title}]({url}) <br> {description}'
receivers:
- name: 'myself'
email_configs:
to: