- commit
- 2b10ab5d012340ae0d0c243edbc413900f79a826
- parent
- 6dce93007bd4b7ac3b1639e42615957d089c7145
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2019-05-05 08:17
update example
Diffstat
| M | example.cfg | 16 | ++++++---------- |
1 files changed, 6 insertions, 10 deletions
diff --git a/example.cfg b/example.cfg
@@ -7,24 +7,20 @@ ENDPOINTS = {
7 7 'fields': {
8 8 'login': '.vcard-username',
9 9 'fullname': '.vcard-fullname',
10 -1 'email': '.vcard-details .email',
11 -1 'join-date': '.vcard-details .join-date@datetime',
12 -1 'activity': {
13 -1 'selector': '.contribution-activity-listing ul a'
14 -1 },
15 -1 'repos': {
16 -1 'selector': '.popular-repos a.mini-repo-list-item',
-1 10 'website': 'a[rel~="me"]?',
-1 11 'avatar': '.h-card img.avatar@src',
-1 12 'pinned-repos': {
-1 13 'selector': '.pinned-item-list-item',
17 14 'fields': {
18 -1 'url': '@href',
-1 15 'url': 'a@href',
19 16 'name': '.repo',
20 -1 'description': '.repo-description',
-1 17 'description': '.pinned-item-desc',
21 18 }
22 19 },
23 20 },
24 21 'fields_doc': {
25 22 'login': 'github username',
26 23 'fullname': 'the user\'s full name',
27 -1 'join-date': 'date when the user joined github in ISO-xx format'
28 24 }
29 25 }
30 26 }