mikf / gallery-dl

Command-line program to download image galleries and collections from several image hosting sites
GNU General Public License v2.0
11.78k stars 965 forks source link

Is rule34hentai.net not working? #6179

Closed subash-ganesan closed 1 month ago

subash-ganesan commented 1 month ago

Hello,

I have been trying to download from rule34hentai.net and so far has been unsuccessful. The last time i tried was sometime ago and it was working then but now not sure if the issue is with my side

These are what i got so far

gallery-dl --version 1.27.4

gallery-dl --cookies-from-browser vivaldi --write-tags --download-archive rule34_hentai_archive.txt "https://rule34hentai.net/post/list/Ciri/1"

[cookies][warning] Failed to decrypt cookie (AES-CBC Unicode) [cookies][info] Extracted 3191 cookies from Vivaldi (18 could not be decrypted) [rule34hentai][warning] Cloudflare challenge [rule34hentai][error] HttpError: '403 Forbidden' for 'https://rule34hentai.net/post/list/Ciri/1'

though i have solved the cloudfare challenge in browser, i get above my reference: https://github.com/mikf/gallery-dl/issues/4844#issuecomment-1872529821

Hrxn commented 1 month ago

Uh, depends, if latest Vivaldi already includes recent changes from Chromium preventing cookie extraction as usual.

e.g. see here: https://github.com/yt-dlp/yt-dlp/issues/10927#issuecomment-2332602512

You could try it with the Chrome extension from said comment to extract cookies into a file to use with gallery-dl

subash-ganesan commented 1 month ago

Hmm I tired exporting the cookies with that extension and then feeding it with --cookies but it didnt work. Did it from Incognito window as well. Not sure if me using Vivaldi is the issue as several have mentioned it worked for them

mikf commented 1 month ago

Are you setting your browser's --user-agent somewhere? You need both User-Agent and solved cookies to bypass the challenge.

subash-ganesan commented 1 month ago

that i have missed. After adding "--user-agent browser" to it, I'm able to download. Thank you guys!