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

Is patreon broken due to captcha now? #1342

Closed
left1000 opened this issue Feb 25, 2021 · 6 comments
Closed

Is patreon broken due to captcha now? #1342

left1000 opened this issue Feb 25, 2021 · 6 comments

Comments

@left1000
Copy link

left1000 commented Feb 25, 2021

So I added my cookie session_id and that meant I stopped getting the "[patreon][warning] no 'session_id' cookie set" error... BUT I now get the following error:

[patreon][warning] Cloudflare CAPTCHA
[patreon][error] HttpError: '403 Forbidden' for 'https://www.patreon.com/user?u=somenumber

If patreon requires captcha on all logins now does that just break gallery-dl? or is there a way to fix this?

@Fukitsu
Copy link

Fukitsu commented Feb 25, 2021

Try adding Google cookies

@mikf
Copy link
Owner

mikf commented Feb 26, 2021

The idea is to export cookies with a browser addon, see https://github.com/mikf/gallery-dl#cookies.

You might find something that works in issue #1117. Most of the time, rolling back to urllib3 version 1.25.11 helps.

@left1000
Copy link
Author

left1000 commented Feb 27, 2021

Ah I see the instructions say you only need the session_id but actually I should follow the advice of that one guy in that thread and use:

"
Since this issue seems to still be present as of 1.16.4 (compiled exe), the workaround I found to work was to copy not only the session_id, but also the __cf_bm and __cfduid cookie, along with the correct User-Agent. This likely will not be a good method for people running this on a schedule or daemon, but in a pinch, it works.
"

as well as your own advice to set:

"
"browser": "firefox"
"

sidenote: I had been just grabbing cookie data from f12+lookingforit I don't think that would effect the issue though, but I was only grabbing an incomplete cookie because I wasn't sure which values gallery-dl would care about in specific for patreon.

@biznizz
Copy link

biznizz commented Feb 27, 2021

Since this is fairly new on the same topic as #1117, I'll give my update here.

Updated all dependencies to the latest version though pip (except idna, since 3.1 is incompatible with requests), including urllib3 to 1.26.3

Updated gallery-dl to latest dev build.

Added browser info to patreon extractor settings in config for a structure of

"patreon": {
	   "browser": "firefox",
            "cookies": {
                "session_id": "session id cookie"
            }
        },

And have used multiple User URL's (whole timeline of Patreon user) and Posts (individual posts in said timeline), and have not gotten a single Cloudflare Captcha issue yet.

Will report if there's any issues going forward.

@left1000
Copy link
Author

Yep! Works! Don't even need the extended cookie, just the added line "
"browser": "firefox",
"
fixed it.

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

4 participants