Code Monkey home page Code Monkey logo

Comments (6)

hentai-chan avatar hentai-chan commented on May 23, 2024 1

When making requests, ReadTimeoutErrors often occur because the server detected an unusual amount of traffic coming from your IP. It should allow requests after an unspecified amount of time again. Try it again in a few hours (or tomorrow). As a word of warning, when this pattern of making excessive requests reoccurs, you can be blocked by the site owner completely. I am not sure if that's what happened, so I am taking a wild guess here. You can configure a stricter retry_strategy in the handler property, but again - for most use cases the default settings should have you covered. Just don't attempt to scrap the whole website ;)

Please report back tomorrow to let me know if this issue persists and go over your script again to rule out any mistakes on your part.

from hentai.

apoleon33 avatar apoleon33 commented on May 23, 2024 1

so yeah a vpn should solve this problem

from hentai.

hentai-chan avatar hentai-chan commented on May 23, 2024 1

Yes, that was a very important insight. I mentioned this issue in the documentation. In this case, a VPN would be necessary to circumvent this ban. I guess this resolves your problem for now. Well, not really, but at least we know the cause of it. Feel free to open another issue if it should still not work even with a VPN, until then I'll close this issue for now.

from hentai.

apoleon33 avatar apoleon33 commented on May 23, 2024

is using a vpn on my whole pc might work?

from hentai.

hentai-chan avatar hentai-chan commented on May 23, 2024

It should work with a VPN because I added the urlib.request.getproxies() as keyword argument to each GET request, but I have never tested this myself because I don't use a VPN. Another reason why ReadTimeoutErrors might occur is when the site is offline (which is not the case) or when someone edited your HOST file to block access to sites with adult content. Since I cannot reproduce this error at home, this issue seems to be specific to you. Can you still access the website through the browser normally?

EDIT: In addition to my last question, could you run functions from this module before or did this error occur immediately upon first contact?

from hentai.

apoleon33 avatar apoleon33 commented on May 23, 2024

i think i know why it does not work

i tried to connect from a browser and i ended up with this:

noice

in french, it means:

You have been redirected to this page because you are trying to connect to a site with child pornography picture

Basically nhentai is blocked in France and i didn't even knew.

from hentai.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.