Skip to content

nabinkhadka/rotating-free-proxies

This branch is 16 commits ahead of, 2 commits behind TeamHG-Memex/scrapy-rotating-proxies:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
nabin
May 28, 2020
99eb981 · May 28, 2020

History

66 Commits
May 28, 2020
May 28, 2020
Feb 1, 2017
Feb 1, 2017
Feb 1, 2017
May 28, 2020
May 28, 2020
Feb 1, 2017
May 28, 2020
Jun 6, 2017
Feb 1, 2017
May 28, 2020
May 28, 2020

Repository files navigation

rotating-free-proxies

Avoid being banned by webpages when you crawl them. This is an extension to the amazing scrapy-rotating-proxies library. The main target of this library is to get proxies dynamically when the spider is running. This library automatically fetches freely available lists of proxies from free-proxy-list.net.

Installation

pip install rotating-free-proxies

Usage

After installing you need to do just add following two variables in settings.py of your Scrapy project

ROTATING_PROXY_LIST_PATH = '/my/path/proxies.txt' # Path that this library uses to store list of proxies
NUMBER_OF_PROXIES_TO_FETCH = 5 # Controls how many proxies to use


DOWNLOADER_MIDDLEWARES = {
    'rotating_free_proxies.middlewares.RotatingProxyMiddleware': 610,
    'rotating_free_proxies.middlewares.BanDetectionMiddleware': 620,
}

For further details on using this library, refer to the original readme.

Thank you!

Packages

No packages published

Languages

  • Python 100.0%