leoncvlt / blinkist-scraper

📚 Python tool to download book summaries and audio from Blinkist.com, and generate some pretty output
191 stars 35 forks source link

Downloads blinks in German even with --language en specified #45

Closed Riviss closed 3 years ago

Riviss commented 3 years ago

I noticed that a lot of Uncategorized books are in German and then are downloaded even if I select the flag --language en.

I tried to skip the "uncategorized" category altogether, but that didn't work. All the German books have a URL like www.blinkist.com/en/nc/reader/x-de. So should be able to add a case to skip if the last three characters of the url string are "-de" and language is "en."

FirstClassCitizenFCC commented 3 years ago

use --match-language to omit books that are not in your desired language

Riviss commented 3 years ago

Works perfectly. Thanks!