ptrstn/dailyblink

I'm unable to download a German blink

Closed this issue · 8 comments

What am i doing wrong? The program worked just fine until it stopped downloading German books and audio files since yesterday. That's the output result, can someone help me please?

cloudscraper.exceptions.CloudflareChallengeError: Detected a Cloudflare version 2 Captcha challenge, This feature is not available in the opensource (free) version.

During handling of the above exception, another exception occurred:

UnicodeEncodeError: 'charmap' codec can't encode character '\u2082' in position 14908: character maps to
Downloading the free daily Blinks...
Detected a Cloudflare version 2 Captcha challenge, This feature is not available in the opensource (free) version.
Retrying...
Attempt 1/10... FAILED
Attempt 2/10... FAILED
Attempt 3/10... FAILED
Attempt 4/10... FAILED
Attempt 5/10...
german (de):
2030 - Mauro F. Guillen

Saving book text...

What version of dailyblink are you using? Did you update/upgrade the package? What command did you use? Whats the completely error message output?

See:

Funnily enough, the code was working till yesterday. I'm still stuck on using the 1.0.0 version, because the pip install --upgrade --user git+https://github.com/ptrstn/dailyblink command is just downloading the newer versions of the mutagen and beatifulsoup4, but it isn't replacing them with the older files.
I'm quite a noob in this kind of stuff...

I also have tried searching for fragments of older versions and reinstalling the program like it was mentioned in the other issue comment, but it isn't solving my problem.
That's the output message:

mposq@DESKTOP-EPIOKKE MINGW67 ~
$ python -m dailyblink
cloudscraper.exceptions.CloudflareChallengeError: Detected a Cloudflare version 2 Captcha challenge, This feature is not available in the opensource (free) version.

During handling of the above exception, another exception occurred:

UnicodeEncodeError: 'charmap' codec can't encode character '\u2060' in position 345: character maps to <undefined>
Downloading the free daily Blinks...
Detected a Cloudflare version 2 Captcha challenge, This feature is not available in the opensource (free) version.
Retrying...
Attempt 1/10...
english (en):
What is Life? - Erwin Schr▒dinger

Saving book text...

What operating system do you use? Python version? How did you initially install the programm?

If you use Windows, try this:
#20 (comment)

Same issue here on windows. Still same version 1.0.0 (as #20)
Some encoding issue related to win?

//edith:
todays dl is working as expected (no special chars in book title or authors name)

I really can't help you if you don't provide me with enough information, or at least the information I asked for.
I assume thats a related Windows issue, since all daily GitHub actions ran fine.

Judging on the error message provided by @Puppe1eer I assume that there is a special character in the book text that can't be properly decoded by some operating systems.

\u2082 is the Unicode character 'SUBSCRIPT TWO':
I assume coming from this text in Blink 5 of 2030 by Mauro F. Guillen:

Tatsächlich sind Städte für 75 Prozent des globalen Energieverbrauchs und 80 Prozent der globalen CO₂-Emissionen verantwortlich.

'\u2060' is the is the Unicode character 'WORD JOINER'.
Since I didn't save that blink, I dont know where exactly in the text it appeared.

I'll run some tests.

Should be fixed in version 1.0.1

It's working again, thank you very much, you have done a great job!