Coder Social home page Coder Social logo

add extra useragent. about fake-useragent HOT 4 CLOSED

fazialnjd avatar fazialnjd commented on June 9, 2024
add extra useragent.

from fake-useragent.

Comments (4)

melroy89 avatar melroy89 commented on June 9, 2024

Maybe you should also try to limit the requests / seconds / minutes you do. Since your IP is banned now, no fake useragent strings will help you with that.

If you are using scrapy framework for example, you have an option like DOWNLOAD_DELAY:

The amount of time (in secs) that the downloader should wait before downloading consecutive pages from the same website. This can be used to throttle the crawling speed to avoid hitting servers too hard.

See also another scrapy option called CONCURRENT_REQUESTS_PER_DOMAIN.

If however you use your own scripting without scrapy, consider adding sleeps to your crawling process.

from fake-useragent.

melroy89 avatar melroy89 commented on June 9, 2024

Also are you using Amazon AWS?

from fake-useragent.

fazialnjd avatar fazialnjd commented on June 9, 2024

Also are you using Amazon AWS?No. I am not.

I use the googlesearch library python, which is based on requests and beautifulsoup; And I have also used time.sleep.
Actually; I have an API that receives almost 200 Google page links per request, and I get blocked with more requests.
The IP will be blocked for a few hours, and after that you can request it again.(The duration of the blocking is not known)

I am trying to prevent IP banning by using fake useragent and proxy.
The number of your fake useragent is 260, (and I choose them randomly); while some fake useagents may be used several times, so I need more fake useragent;
I wish the number could be increased to 500.

thanks for the help.

from fake-useragent.

melroy89 avatar melroy89 commented on June 9, 2024

Related to: #109
and: #61

We want to switch to another source and also add mobile platforms.

from fake-useragent.

Related Issues (20)

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.