- commit
- a29e29f27dc51c37eca8b3a7e4e4f3062cf5cb22
- parent
- 6216dbf17e15c107cc22eec418c58d6e1462eb9e
- Author
- Tobias Bengfort <tobias.bengfort@gmx.net>
- Date
- 2015-02-05 18:00
add example config
Diffstat
| A | example.cfg | 27 | +++++++++++++++++++++++++++ |
1 files changed, 27 insertions, 0 deletions
diff --git a/example.cfg b/example.cfg
@@ -0,0 +1,27 @@
-1 1 ENDPOINTS = {
-1 2 'github': {
-1 3 'host': 'https://api.github.com/users/'
-1 4 },
-1 5 'user': {
-1 6 'host': 'https://github.com/',
-1 7 'type': 'scrape_item',
-1 8 'fields': {
-1 9 'login': '.vcard-username',
-1 10 'fullname': '.vcard-fullname',
-1 11 'email': '.vcard-details .email',
-1 12 'join-date': '.vcard-details .join-date@datetime'
-1 13 },
-1 14 'fields_doc': {
-1 15 'login': 'github username',
-1 16 'fullname': 'the user\'s full name',
-1 17 'join-date': 'date when the user joined github in ISO-xx format'
-1 18 }
-1 19 },
-1 20 'repos': {
-1 21 'host': 'https://github.com/',
-1 22 'type': 'scrape_list',
-1 23 'selector': '.popular-repos a.mini-repo-list-item@href'
-1 24 }
-1 25 }
-1 26
-1 27 ALLOW_CORS = True