Open cwolf1337 opened 2 years ago
You may need additional cookies.
For example, "_ALGOLIA"
, "__cf_bm"
, "patreon_device_id"
, "datadome"
.
C:\Users\\<username>\AppData\gallery-dl\config.json
%USERPROFILE%\gallery-dl\config.json
)%APPDATA%\gallery-dl\config.json
)Check the correct value of %APPDATA%
by echo %APPDATA%
command in CMD.
C:\Users\
\AppData\gallery-dl\config.json * "C:\Users\<username>\gallery-dl\config.json" (`%USERPROFILE%\gallery-dl\config.json`) * "C:\Users\<username>\AppData\**Roaming**\gallery-dl\config.json" (`%APPDATA%\gallery-dl\config.json`)
Check the correct value of
%APPDATA%
byecho %APPDATA%
command in CMD.
Thanks, after moving the config file to the Roaming folder, I got it to work. However, after downloading 4 posts, I'm now hit with a [patreon][error] HttpError: '403 Forbidden' for 'https://www.patreon.com/posts/111'. Does this have to do with cookies or something? How would I fix this?
Use "cookies" and "user-agent" from the browser. And Python 3.9.X version or less.
https://github.com/mikf/gallery-dl/issues?q=Patreon+403+Forbidden
I was getting 403s, even with a full cookie dump.
Added "refresh-token":"cache"
and it started working again.
"patreon": {
"cookies": "%APPDATA%/gallery-dl/patreon.com_cookies.txt",
"refresh-token": "cache"
},
YMMV.
Use "cookies" and "user-agent" from the browser. And Python 3.9.X version or less.
https://github.com/mikf/gallery-dl/issues?q=Patreon+403+Forbidden
I get this error when trying:
PS C:\Users\USERNAME> gallery-dl -d I:\Stuff https://www.patreon.com/111/posts -v
[gallery-dl][debug] Version 1.21.2
[gallery-dl][debug] Python 3.9.10 - Windows-10-10.0.19043-SP0
[gallery-dl][debug] requests 2.26.0 - urllib3 1.26.7
[gallery-dl][debug] Starting DownloadJob for 'https://www.patreon.com/111/posts'
[patreon][debug] TLS 1.2 disabled.
[patreon][debug] Using PatreonCreatorExtractor for 'https://www.patreon.com/111/posts'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): www.patreon.com:443
[urllib3.connectionpool][debug] https://www.patreon.com:443 "GET /111/posts HTTP/1.1" 200 None
[urllib3.connectionpool][debug] https://www.patreon.com:443 "GET /api/posts?include=user,images,attachments,user_defined_tags,campaign,poll.choices,poll.current_user_responses.user,poll.current_user_responses.choice,poll.current_user_responses.poll,access_rules.tier.null&fields%5Bpost%5D=change_visibility_at,comment_count,content,current_user_can_delete,current_user_can_view,current_user_has_liked,embed,image,is_paid,like_count,min_cents_pledged_to_view,post_file,published_at,patron_count,patreon_url,post_type,pledge_url,thumbnail_url,teaser_text,title,upgrade_url,url,was_posted_by_campaign_owner&fields%5Buser%5D=image_url,full_name,url&fields%5Bcampaign%5D=avatar_photo_url,earnings_visibility,is_nsfw,is_monthly,name,url&fields%5Baccess_rule%5D=access_rule_type,amount_cents&sort=-published_at&filter%5Bis_draft%5D=false&filter%5Bcontains_exclusive_posts%5D=true&filter%5Bcampaign_id%5D=1269646&json-api-use-default-includes=false&json-api-version=1.0 HTTP/1.1" 403 None
[patreon][error] HttpError: '403 Forbidden' for 'https://www.patreon.com/api/posts?include=user,images,attachments,user_defined_tags,campaign,poll.choices,poll.current_user_responses.user,poll.current_user_responses.choice,poll.current_user_responses.poll,access_rules.tier.null&fields[post]=change_visibility_at,comment_count,content,current_user_can_delete,current_user_can_view,current_user_has_liked,embed,image,is_paid,like_count,min_cents_pledged_to_view,post_file,published_at,patron_count,patreon_url,post_type,pledge_url,thumbnail_url,teaser_text,title,upgrade_url,url,was_posted_by_campaign_owner&fields[user]=image_url,full_name,url&fields[campaign]=avatar_photo_url,earnings_visibility,is_nsfw,is_monthly,name,url&fields[access_rule]=access_rule_type,amount_cents&sort=-published_at&filter[is_draft]=false&filter[contains_exclusive_posts]=true&filter[campaign_id]=1269646&json-api-use-default-includes=false&json-api-version=1.0'
I'm having issues downloading images from Patreon. I've extracted my _unique sessionid and pasted it into a config file and stored it under C:\Users\\AppData\gallery-dl\config.json using the template.
{ "extractor": { "patreon": { "cookies": { "session_id": "unique session ID" } } } }
Then I opened my command prompt and typed: gallery-dl "https://www.patreon.com/posts/111"
The following error message shows up: [patreon][warning] no 'session_id' cookie set [patreon][warning] Not allowed to view post 111 [patreon][info] No results for https://www.patreon.com/posts/111
What am I doing wrong?