Works on GNU/Linux OS/macOS.
The script allows you to download books from znanium.com. The selenium module is used for this purpose. For downloading you need:
- Have an account with the book you bought.
- Dowsnload geckodriver in folder.
- In the directory with the script, create a text file auth.txt. In it, put your login and password through the space.
- Install selenium, img2pdf, PIL moduli via pip install or any other way. install fix img2pdf for macOS
Example of program execution from terminal:
$ python znanium.py https://znanium.com/read?id=xxxxxx 1 x
The first argument is a link to the book in the reader itself. The second argument - from which page to load. The third argument - which page to load.
Работает на GNU/Linux OS/macOS.
Скрипт позволяет скачивать книги с сайта znanium.com. Для данных целей используется модуль selenium. Для скачивания вам необходимо:
- Иметь аккаунт с купленной книгой.
- Скачать geckodriver в папку
- В директории со скриптом создать текстовый файла auth.txt. В него через пробел указать логин и пароль.
- Через pip install или иным образом установить модули selenium, img2pdf, PIL.
исправление установки img2pdf на macOS
Пример выполнения программы из терминала:
$ python znanium.py https://znanium.com/read?id=xxxxxx 1 x
Первый аргумент - ссылка на книгу в самом ридере. Второй аргумент - с какой страницы загружать. Третий аргумент - по какую страницу загружать.