Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement feature to retrieve and save all books from user's playlists #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sweep-ai[bot]
Copy link

@sweep-ai sweep-ai bot commented Aug 8, 2023

Description

This PR implements a new feature to retrieve and save all the books from the user's playlists in the Safari Books Online library. It adds the functionality to read the user's playlists, retrieve the list of books in each playlist, and download each book.

Summary of Changes

  • Added a new function to retrieve the user's playlists by making a request to the appropriate API endpoint and parsing the response.
  • For each playlist, retrieved the list of books by making a request to the appropriate API endpoint and parsing the response.
  • Downloaded each book by calling the existing function to download a book with the book ID as an argument.

These changes enable users to easily retrieve and save all the books from their playlists, providing a convenient way to access their favorite books offline.

Fixes #1.


To checkout this PR branch, run the following command in your terminal:

git checkout sweep/retrieve-save-books-from-playlists

To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.

@sweep-ai sweep-ai bot added the sweep Assigns Sweep to an issue or pull request. label Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sweep Assigns Sweep to an issue or pull request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sweep: Retrieve and save all the books from the user’s playlists.
0 participants