PyJSONProxy

simple proxy and scraper
git clone https://git.ce9e.org/PyJSONProxy.git

commit
8f587670839d77ce94adbc4f77b7d0b87e78ac61
parent
801f963daac16e25d2abec7745d1ac1c2c4f3897
Author
Tobias Bengfort <tobias.bengfort@gmx.net>
Date
2015-02-05 16:55
Fix examples

Diffstat

M README.rst 12 ++++++------

1 files changed, 6 insertions, 6 deletions


diff --git a/README.rst b/README.rst

@@ -49,19 +49,19 @@ HTML pages, PyJSONProxy can extract information from there::
   49    49 
   50    50     ENDPOINTS = {
   51    51         'github': {
   52    -1             'host': 'https://github.com/'
   -1    52             'host': 'https://github.com/',
   53    53             'type': 'scrape_item',
   54    54             'fields': {
   55    55               'login': '.vcard-username',
   56    56               'fullname': '.vcard-fullname',
   57    -1               'email': '.vcard-details .email'
   -1    57               'email': '.vcard-details .email',
   58    58               'join-date': '.vcard-details .join-date@datetime'
   59    59             }
   60    60         },
   61    61         'repos': {
   62    -1             'host': 'https://github.com/'
   -1    62             'host': 'https://github.com/',
   63    63             'type': 'scrape_list',
   64    -1             'selector': '.repo-list-name a@href'
   -1    64             'selector': '.popular-repos a.mini-repo-list-item@href'
   65    65         }
   66    66     }
   67    67 
@@ -93,7 +93,7 @@ description to both endpoints and fields::
   93    93 
   94    94     ENDPOINTS = {
   95    95         'github': {
   96    -1             'host': 'https://github.com/'
   -1    96             'host': 'https://github.com/',
   97    97             'type': 'scrape_item',
   98    98             'doc': 'Access data about GitHub users',
   99    99             'fields': {
@@ -104,7 +104,7 @@ description to both endpoints and fields::
  104   104             },
  105   105             'fields_doc': {
  106   106               'login': 'github username',
  107    -1               'fullname': 'the user's full name',
   -1   107               'fullname': 'the user\'s full name',
  108   108               'join-date': 'date when the user joined github in ISO-xx format'
  109   109             }
  110   110         }