Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blinkist-scraper no longer working - attribute error!? #57

Open
3mfg opened this issue Jul 4, 2021 · 5 comments
Open

blinkist-scraper no longer working - attribute error!? #57

3mfg opened this issue Jul 4, 2021 · 5 comments

Comments

@3mfg
Copy link

3mfg commented Jul 4, 2021

Dear Leonardo, *

great script - used to backup some of my favorite books in January as epub and mp4. Worked like a charm.
Now it breaks shortly after initialising the (already updated) chromedriver:

C:\blinkistscraper>python main.py --books.txt --cooldown 5 --concat-audio --keep-noncat --save-cover --embed-cover-art
←[2m[13:10:21]←[0m ←[34mINFO←[0m Starting scrape run...
←[2m[13:10:22]←[0m ←[34mINFO←[0m Initialising chromedriver at ~\Python\Python38\lib\site-packages\chromedriver_autoinstaller\91\chromedriver.exe...

DevTools listening on ws://~
←[2m[13:10:52]←[0m ←[34mINFO←[0m Logged into Blinkist. Loading Library...

Traceback (most recent call last):
File "main.py", line 340, in
main()
File "main.py", line 303, in main
dump_exists = scrape_book(
File "main.py", line 217, in scrape_book
audio_files = scraper.scrape_book_audio(
File "~\scraper.py", line 504, in scrape_book_audio
del driver.requests
AttributeError: requests

Any(body) an idea what's the root cause resp. how to fix?
Thanks in advance!

@kotobuki09
Copy link

kotobuki09 commented Jul 9, 2021

Download audiobook is breaking for me. I only can download the epub version. Hope that the owner will update the script soon so I can back up all the library.

@3mfg
Copy link
Author

3mfg commented Jul 14, 2021

Download audiobook is breaking for me. I only can download the epub version. Hope that the owner will update the script soon so I can back up all the library.

interesting - how exactly do you manage to download the epub version?
. which command line parameters are you using?
. which code module versions? which modifications?
Thanks in advance for the info!

@kotobuki09
Copy link

#46 (comment)
This one working really great for me so far!!

I use the latest version with some modifications mention in the post above.
python blinkistscraper USER PASSWORD --create-pdf --no-ublock --language en --match-language

@3mfg
Copy link
Author

3mfg commented Jul 18, 2021

which modifications resp. which post are you referring to exactly?
Thanks for the info, kotobuki09

@kotobuki09
Copy link

kotobuki09 commented Jul 19, 2021

For only downloading ebook. I think this is a better solution #46 (comment)

This is for everything including audiobooks as well.
#46 (comment)
You did reading what I quote over here right?
Change line 180 in scraper.py to allow time to manually install extension: WebDriverWait(driver, 60) --> WebDriverWait(driver, 360)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants