ENDPOINTS = { 'github': { 'host': 'https://api.github.com/users/' }, 'user': { 'host': 'https://github.com/', 'fields': { 'login': '.vcard-username', 'fullname': '.vcard-fullname', 'website': 'a[rel~="me"]?', 'avatar': '.h-card img.avatar@src', 'pinned-repos': { 'selector': '.pinned-item-list-item', 'fields': { 'url': 'a@href', 'name': '.repo', 'description': '.pinned-item-desc', } }, }, 'fields_doc': { 'login': 'github username', 'fullname': 'the user\'s full name', } } } ALLOW_CORS = True