Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chik3r/edco-learning-downloader
A tool to download a book from Edco Learning as images or as a PDF
https://github.com/chik3r/edco-learning-downloader
Last synced: about 1 month ago
JSON representation
A tool to download a book from Edco Learning as images or as a PDF
- Host: GitHub
- URL: https://github.com/chik3r/edco-learning-downloader
- Owner: Chik3r
- Created: 2022-10-07T22:12:40.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-10-07T22:30:25.000Z (over 2 years ago)
- Last Synced: 2024-10-27T13:19:45.735Z (3 months ago)
- Language: Python
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Edco Learning Downloader
A tool to download a book from Edco Learning as images. The images can then be converted to a `.pdf` file.`download_chapter.py` requires various things (all of them can be found by opening the Network menu in Dev Tools and then loading a book):
- `token`: The token used to get the images. Found in the url to the images
- `cookies`: The cookies that are sent to the `GetPages` endpoint.
- `bookId`: The id of the book, can be found in the book URL when you open it.
- The output images will be stored in a folder next to the script. The folder will have the book id as its name.
- The naming scheme of the images is `{chapterId}-{pageId}-{imageNumber}.jpg`
`convert_to_pdf.py` converts the images in a folder next to it to a `.pdf` file.
- `bookId`: The id of the book. (The folder name)
- The output pdf will be inside the folder.