Download books from Perlego.com in PDF format.
Install Python 3 and run:
$ pip3 install -r requirements.txt
Please watch the demonstration video.
You'll need to find the authToken, bookId and reCaptchaToken analyzing the browser/websocket traffic and replace the constants in downloader.py.
$ python3 downloader.py
Windows users may encounter the following error messages running the script:
The application has failed to start because its side-by-side configuration is incorrect
pyppeteer.errors.BrowserError: Browser closed unexpectedly
This issue can be solved reinstalling the chrome client with:
$ pyppeteer-install.exe
If the issue persists, please try:
- to manually (re)install chrome on your computer or download the correct version of chromedriver and add it to the system path (ie. C:/Windows);
- modify line 171 adding
executablePath
with the correct path of Chrome executable:
'headless': True,
'autoClose': False,
'executablePath': 'C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe',
The code is not intended for piracy or unlawful re-sharing purposes. You can only download the books you have purchased for the sole purpose of personal use. I do not take responsibility for illegal use of the software.