-
Notifications
You must be signed in to change notification settings - Fork 6
/
githubtrending.yaml
54 lines (50 loc) · 1.34 KB
/
githubtrending.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
global:
# The smarthost and SMTP sender used for mail notifications.
smtp_smarthost: 'example.smtp.com:587'
smtp_from: '[email protected]'
smtp_auth_username: '[email protected]'
smtp_auth_password: 'example'
store: 'github.db'
jobs:
- name: 'githubtrending'
# run every 5 minute
cron: '*|*/5'
url:
test_target: 'examples/githubtrending'
target: 'https://github.com/trending/{lang}?since=daily'
query_parameter:
lang:
- type: string
value: all
- type: string
value: go
- type: string
value: python
- type: string
value: java
- type: string
value: markdown
- type: distinct
value: lang
parser: 'githubtrending'
parsers:
- name: 'githubtrending'
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[1]"
fork: "div/a[2]"
today: "div/span[3]"
format:
markdown: '[{lang}: {repo}]({url}), star: {star}, fork: {fork}, today-star: {today} <br> {desc}'
html: '<p><a href="{url}">{lang}: {repo}</a> start: {star}, fork: {fork}, today-star: {today}, {desc}</p>'
receivers:
- name: 'example'
email_configs:
to: