Users Service
The UserService searches and retrieves Skoob user profiles.
Example
from pyskoob import SkoobClient
with SkoobClient() as client:
# TIP: use environment variables or a secrets manager instead of hard-coding credentials
client.auth.login(email="you@example.com", password="secret")
results = client.users.search("victor")
for user in results.results:
print(user.name, user.id)
Services for retrieving and manipulating Skoob user data.
AsyncUserService
Bases: _UserServiceMixin, AsyncAuthenticatedService
Asynchronous variant of :class:UserService.
Source code in pyskoob/users.py
412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 | |
get_bookcase(user_id, bookcase_option, page=1)
async
Asynchronous wrapper around :meth:_get_bookcase.
Source code in pyskoob/users.py
438 439 440 441 | |
get_by_id(user_id)
async
Asynchronous wrapper around :meth:_get_by_id.
Source code in pyskoob/users.py
418 419 420 421 | |
get_read_stats(user_id)
async
Asynchronous wrapper around :meth:_get_read_stats.
Source code in pyskoob/users.py
433 434 435 436 | |
get_relations(user_id, relation, page=1)
async
Asynchronous wrapper around :meth:_get_relations.
Source code in pyskoob/users.py
423 424 425 426 | |
get_reviews(user_id, page=1)
async
Asynchronous wrapper around :meth:_get_reviews.
Source code in pyskoob/users.py
428 429 430 431 | |
search(query, gender=None, state=None, page=1, limit=100)
async
Asynchronous wrapper around :meth:_search.
Source code in pyskoob/users.py
443 444 445 446 447 448 449 450 451 452 453 | |
UserService
Bases: _UserServiceMixin, AuthenticatedService
Fetch user profiles, books and friends from Skoob.
Source code in pyskoob/users.py
366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 | |
__init__(client, auth_service)
Initialize the service with dependencies.
Source code in pyskoob/users.py
369 370 371 372 | |
get_bookcase(user_id, bookcase_option, page=1)
Synchronous wrapper around :meth:_get_bookcase.
Source code in pyskoob/users.py
394 395 396 397 | |
get_by_id(user_id)
Synchronous wrapper around :meth:_get_by_id.
Source code in pyskoob/users.py
374 375 376 377 | |
get_read_stats(user_id)
Synchronous wrapper around :meth:_get_read_stats.
Source code in pyskoob/users.py
389 390 391 392 | |
get_relations(user_id, relation, page=1)
Synchronous wrapper around :meth:_get_relations.
Source code in pyskoob/users.py
379 380 381 382 | |
get_reviews(user_id, page=1)
Synchronous wrapper around :meth:_get_reviews.
Source code in pyskoob/users.py
384 385 386 387 | |
search(query, gender=None, state=None, page=1, limit=100)
Synchronous wrapper around :meth:_search.
Source code in pyskoob/users.py
399 400 401 402 403 404 405 406 407 408 409 | |