scribd-downloader icon indicating copy to clipboard operation
scribd-downloader copied to clipboard

KeyError: 'class'

Open itsbkm opened this issue 3 years ago • 5 comments

Python Version : 3.9.4 Scridbdl Version : Latest Version Mac OS : 10.15.7 Scribd Premium Account Command : ~ % scribdl -c Sites/scribd-downloader/scribd_credentials.txt https://www.scribd.com/book/253264900/Sapiens-A-Brief-History-of-Humankind

Output: Traceback (most recent call last): File "/usr/local/bin/scribdl", line 33, in sys.exit(load_entry_point('scribd-downloader==1.3.1', 'console_scripts', 'scribdl')()) File "/usr/local/lib/python3.9/site-packages/scribd_downloader-1.3.1-py3.9.egg/scribdl/command_line.py", line 53, in _command_line File "/usr/local/lib/python3.9/site-packages/scribd_downloader-1.3.1-py3.9.egg/scribdl/downloader.py", line 28, in init File "/usr/local/lib/python3.9/site-packages/scribd_downloader-1.3.1-py3.9.egg/scribdl/downloader.py", line 97, in is_book File "/usr/local/lib/python3.9/site-packages/beautifulsoup4-4.9.3-py3.9.egg/bs4/element.py", line 1406, in getitem return self.attrs[key] KeyError: 'class'

itsbkm avatar Apr 19 '21 09:04 itsbkm

I cant help you with the error, though if you want to download that book "brief history of humankind" check this website... https://1lib.fr/book/2470525/8fa36f

juancaiman avatar Apr 19 '21 17:04 juancaiman

I cant help you with the error, though if you want to download that book "brief history of humankind" check this website... https://1lib.fr/book/2470525/8fa36f

Thank You so much!

itsbkm avatar Apr 20 '21 19:04 itsbkm

I cant help you with the error, though if you want to download that book "brief history of humankind" check this website... https://1lib.fr/book/2470525/8fa36f

Could you tell us how do you solve the error please?

FrankFacundo avatar Apr 25 '21 09:04 FrankFacundo

I cant help you with the error, though if you want to download that book "brief history of humankind" check this website... https://1lib.fr/book/2470525/8fa36f

Could you tell us how do you solve the error please?

I couldnt fix the issue and simply started using this https://1lib.fr/book/2470525/8fa36f website

itsbkm avatar Apr 25 '21 20:04 itsbkm

I think you entered invalid url. I encounterd same error Key Error : 'class',and I found that the url should be scribd.com/read/~ not scribd.com/book/~. You should click the Continue Reading button and copy the url.

kyle8581 avatar May 04 '21 04:05 kyle8581