Author Service
The AuthorService provides search capabilities for authors on Skoob. It scrapes
Skoob's HTML pages and returns lightweight results with the following fields:
id: numeric identifier extracted from the author URLname: the author's display namenickname: nickname shown below the nameurl: absolute URL to the author's page on Skoobimg_url: avatar image URL
Skoob displays publication, reader and follower counts on the search results
page, but these values are often outdated when compared with the author's
profile page. To avoid exposing misleading data, AuthorService intentionally
omits these numbers.
Example
from pyskoob import SkoobClient
with SkoobClient() as client:
results = client.authors.search("Asimov")
for author in results.results:
print(author.name, author.id)
if results.has_next_page:
# fetch the next page of results
more_results = client.authors.search("Asimov", page=results.next_page)
search() returns only the first page of results. Use results.has_next_page to
fetch additional pages.
Services for retrieving authors and their works from Skoob.
AsyncAuthorService
Bases: _AuthorServiceMixin, AsyncBaseSkoobService
Asynchronous variant of :class:AuthorService.
Source code in pyskoob/authors.py
167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 | |
get_books(author_id, page=1)
async
Asynchronous wrapper around :meth:_get_books.
Source code in pyskoob/authors.py
183 184 185 186 | |
get_by_id(author_id)
async
Asynchronous wrapper around :meth:_get_by_id.
Source code in pyskoob/authors.py
178 179 180 181 | |
search(query, page=1)
async
Asynchronous wrapper around :meth:_search.
Source code in pyskoob/authors.py
173 174 175 176 | |
AuthorService
Bases: _AuthorServiceMixin, BaseSkoobService
High level operations for retrieving authors.
Source code in pyskoob/authors.py
151 152 153 154 155 156 157 158 159 160 161 162 163 164 | |
get_books(author_id, page=1)
Synchronous wrapper around :meth:_get_books.
Source code in pyskoob/authors.py
162 163 164 | |
get_by_id(author_id)
Synchronous wrapper around :meth:_get_by_id.
Source code in pyskoob/authors.py
158 159 160 | |
search(query, page=1)
Synchronous wrapper around :meth:_search.
Source code in pyskoob/authors.py
154 155 156 | |