Skip to content

michaelbeutler/edubase-to-pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

21 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Edubase-to-PDF CLI Tool ๐ŸŽ“๐Ÿ“š

Description ๐Ÿ“š๐Ÿ–จ๐Ÿ“‘

The edubase-to-pdf CLI tool is designed to help users securely download and archive e-books from Edubase as PDF files. ๐Ÿ“–๐Ÿ”’ It allows users to access their books even if the Edubase reader gets discontinued, ensuring continued access to educational resources. Please note that this tool is intended strictly for personal use and archiving purposes. It should not be used for any illegal activities, including piracy. ๐Ÿšซ๐Ÿดโ€โ˜ ๏ธ

๐ŸŽฌ Demo

Check out this demo to see edubase-to-pdf in action! ๐Ÿ‘‡

Demo

๐ŸŒŸ Features

  • ๐Ÿ” Easy: Use one single tool to download all your eBooks.
  • ๐Ÿ“š PDF: Save your eBooks as PDF files for easy access.
  • ๐Ÿ“ง Secure: Log in securely using your Edubase email and password.
  • โžก Customizable: Choose the starting page and the number of pages to import.
  • ๐Ÿ“‚ Temporary Directory: Specify a temporary directory for screenshots.
  • โณ Page Delay: Set a delay between pages to give the browser time to load.
  • ๐Ÿ”Ž Browser Size: Customize the browser width and height for better screenshot quality.

๐Ÿ“ฆ Installation

๐Ÿ”ง Binaries

You can install the edubase-to-pdf binary easily using the following command:

# This will install the binary at $(go env GOPATH)/bin/edubase-to-pdf
curl -sSfL https://raw.githubusercontent.com/michaelbeutler/edubase-to-pdf/main/install.sh | sh -s -- -b $(go env GOPATH)/bin

# โœ… Verify the installation by checking the help
edubase-to-pdf --help

๐Ÿ–ฅ๏ธ Windows

For Windows users, you can install the edubase-to-pdf binary using Chocolatey:

# Install using Chocolatey
choco install michaelbeutler-edubase-to-pdf --version=2.0.3

# โœ… Verify the installation by checking the help
edubase-to-pdf --help

๐Ÿณ Docker

You can also run the edubase-to-pdf using Docker:

# Pull the latest Docker image
docker pull ghcr.io/michaelbeutler/edubase-to-pdf

# Run the Docker container
docker run -it ghcr.io/michaelbeutler/edubase-to-pdf edubase-to-pdf --help

# Run the Docker container to import a book
docker run -v ./ ghcr.io/michaelbeutler/edubase-to-pdf edubase-to-pdf import

Example ๐Ÿงพ๐Ÿ‘†

Here is an example of how to use the tool:

edubase-to-pdf import -e your_email@example.com -p your_password -s 2 -m 10

In this example, the tool signs in to Edubase using the provided email and password. It then starts importing from page 2 and imports a maximum of 10 pages. The resulting PDF will be saved in the current directory. ๐ŸŽ‰๐Ÿ“š

Contact ๐Ÿค”๐Ÿ’ฌ

If you encounter any issues or have any questions, please feel free to open an issue on our GitHub repository:

github.com/michaelbeutler/edubase-to-pdf/issues

We value your feedback and will do our best to assist you. ๐Ÿ‘๐Ÿ“ง

Usage ๐Ÿ’ปโŒจ

edubase-to-pdf import [flags]

Flags ๐Ÿšฉ

  -d, --debug                 Debug mode. Show browser window.
  -e, --email string          Edubase email for login. ๐Ÿ“ง
  -H, --height int            Browser height in pixels; this can affect screenshot quality. (default 1440) ๐Ÿ”
  -h, --help                  Help for import.
  -m, --max-pages int         Maximum pages to import from the book. (default -1) ๐Ÿ”
  -D, --page-delay duration   Delay between pages in milliseconds. This is required to give the browser time to load the page. (default 500ms) โณ
  -p, --password string       Edubase password for login. ๐Ÿ”‘
  -s, --start-page int        Start page to import from the book. (default 1) โžก
  -t, --temp string           Temporary directory for screenshots; these will be used to generate the pdf. (default "screenshots") ๐Ÿ“‚
  -W, --width int             Browser width in pixels; this can affect screenshot quality. (default 2560) ๐Ÿ”Ž
  -T, --timeout duration      Maximum time the app can take to download all pages. (increase this value for large books, default 5 min)

Legal Disclaimer โš–๏ธ

Please note that the edubase-to-pdf CLI tool is not affiliated with Edubase and should be used responsibly and within the bounds of the law. This tool is intended solely for personal use, archiving purposes, and accessing books in compliance with the terms and conditions set by Edubase. The tool should not be used to infringe upon the copyrights or intellectual property rights of any individual or organization. The developer of this tool disclaims any liability for any misuse or illegal activities performed with it. Users are solely responsible for their actions while using this tool. ๐Ÿšซ๐Ÿ‘ฎโ€โ™‚๏ธ

Remember to respect the rights of authors and publishers by using this tool responsibly and legally. Happy reading! ๐Ÿ“š๐Ÿ˜Š