GithubHelp home page GithubHelp logo

dgnsrekt / requests-whaor Goto Github PK

View Code? Open in Web Editor NEW
17.0 3.0 2.0 22.97 MB

For the filthiest web scrapers that have no time for rate-limits.

Home Page: https://dgnsrekt.github.io/requests-whaor/

License: MIT License

Python 100.00%
requests rate-limit tor haproxy docker haproxy-docker tor-proxy

requests-whaor's Introduction

requests-whaor [ri-kwests hawr]

Requests + Docker + HAproxy + Tor

Requests With High Availability Onion Router. For the filthiest web scrapers that have no time for rate-limits.

Black GitHub

Overview

requests-whaor proxies GET requests through a local Docker network of TOR circuits. It takes care of starting and stopping a pool of TOR proxies behind an HAproxy load balancer, which acts as a round robin reverse proxy network. This will give each request a new IP address. If you start having issues with the initial pool of IPs, requests-whaor can gather a new pool of IP addresses by restarting all TOR containers.

Install with pip

pip install requests-whaor

Install with Poetry

poetry add requests-whaor

>> Quickstart / Docs <<

Projects to highlight.

Useful Docker commands.

If things get out of hand you may need these commands for debugging or killing containers.

docker ps -q --filter ancestor=osminogin/tor-simple | xargs -L 1 docker logs --follow

docker ps -q --filter ancestor=osminogin/haproxy | xargs -L 1 docker logs --follow

docker stop $(docker ps -q --filter ancestor=osminogin/tor-simple)

docker stop $(docker ps -q --filter ancestor=haproxy)

docker network rm $(docker network ls -q -f name=whaornet)

TODO

  • Testing.
  • More request methods if requested.
  • Options for using different Tor containers.
  • Options for different load balancer containers.

Contact Information

Telegram = Twitter = Tradingview = Discord = @dgnsrekt

Email = [email protected]

requests-whaor's People

Contributors

dgnsrekt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.