evmer / perlego-downloader

Download books from Perlego.com in PDF format
MIT License
106 stars 52 forks source link

Unexpected TOKEN - Windows 7 - Error #28

Closed sfoot13 closed 1 year ago

sfoot13 commented 1 year ago

Hello, first, thank you very much for this great tool. Second, I'm having this error on Windows 7:

Símbolo (token) inesperado 'C:\Users\Mac\AppData\Local\pyppeteer\pyppeteer\local-chromium\588429\chrome-win32\ \chrome.exe' en la expresión o la instrucción. En línea: 1 Carácter: 914

PS C:\python\python38>

Could you help me please? Thanks in advanced.

sfoot13 commented 1 year ago

Also, using debian Im having this issue.

Screenshot_2022-11-15-23-08-41-152_com termux

evmer commented 1 year ago

Hello, chrome is missing from your local system. Run pyppeteer-install command and then restart the script.

sfoot13 commented 1 year ago

Hello, chrome is missing from your local system. Run pyppeteer-install command and then restart the script.

Hello Evmer :smiley: : After many tries, finally it worked! But I had to install Ubuntu on my notebook, was really easier with Linux, all the necessary files installed correctly.

Had a problem with narrow margins, but edited the script and I set it to 85, and the result was excellent. Any chance to add some extra editing optionns? Like letter size, letter spacing, page size or to keep the hyperlink inside the pdf? Things like that...

Thank you very much for this incredible script! Thank you very much and have a good day :smiley: Captura de pantalla_2022-11-18_23-29-52

evmer commented 1 year ago

Hey @sfoot13, glad to hear you managed to make it working. I'm sorry but I'm not been able to test on Windows yet so I can't handle the related issues right now.

Regarding the document settings (margins, page size, spacing etc.) you can look at lines 232-239 and refer to the pyppeteer's page.pdf() documentation (see under options).

image