mikf / gallery-dl

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

[nhentai & gelbooru] SSLCertVerificationError #6165

Closed nishimi-ya closed 1 month ago

nishimi-ya commented 1 month ago

[downloader.http][warning] HTTPSConnectionPool(host='i.nhentai.net', port=443): Max retries exceeded with url: /galleries/1975089/1.jpg (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1000)'))) (1/5)

I have downgraded the python-requests to version 2.31.0 and will output like above. version 2.31.0 and lower will straight up ModuleNotFoundError: No module named 'requests'.

nishimi-ya commented 1 month ago

Context: I want to download nhentai favorite tab with this command % gallery-dl --cookies ~/Downloads/cookies-nhentai-net.txt https://nhentai.net/favorites/

mikf commented 1 month ago

Are you using a proxy? Have you tried --no-check-certificate?

nishimi-ya commented 1 month ago

Hello, sorry late reply. I used that flag and there's error because my ISP blocked the website, previously it wasn't like this. Changing the dns in resolv.conf doesn't work either.

mikf commented 1 month ago

my ISP blocked the website

Then use a VPN, shadowsocks, GreenTunnel, a regular Proxy, etc.