evmer / scribd-downloader

Download your books from Scribd in PDF format for personal and offline use
MIT License
111 stars 31 forks source link

Py script error #8

Open millybilli opened 1 year ago

millybilli commented 1 year ago

Hi,

well-done for providing this script, it has proved truly useful...till now

i am now having issues with it, could you help? Pyerror

rogerfedererforever commented 1 year ago

The same problem with me,please check

3xploiton3 commented 1 year ago

https://i.imgur.com/0OkrEBL.png

same happen on me, chrome suddenly closed without notice

SIKtt commented 1 year ago

Seems some book don't have a <style> id = fontfaces </style>

DashaM7 commented 10 months ago

How did you manage to solve the problem? What needs to be fixed in the code?

SIKtt commented 10 months ago

How did you manage to solve the problem? What needs to be fixed in the code? change line 58 into below may help:


# retrieve fonts
font_style = page.locator('#fontfaces').inner_html()
# retrieve fonts    
try:
    font_style = page.locator('#fontfaces').inner_html()
except:
    font_style = ""