mikf / gallery-dl

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

[nhentai & gelbooru] SSLCertVerificationError #6165

Closed nishimi-ya closed 2 months ago

nishimi-ya commented 2 months 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 2 months 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 2 months ago

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

nishimi-ya commented 2 months 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 2 months ago

my ISP blocked the website

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