Ganofins / proxy-extractor

Python package to extract free proxies from various free proxy listing sites

Home Page:https://pypi.org/project/proxy-extractor/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Proxy Extractor

Proxy Extractor is a utility for extracting free proxies from various free proxy listings.

demo

Currectly, it extracts proxy from the following listings:

free-proxy-list

Installation

with pip
pip3 install proxy-extractor
or build from source
git clone https://github.com/Ganofins/proxy-extractor.git && cd proxy-extractor && python3 setup.py install

Documentation

proxy-extractor is available as both a package as well as a command line program. The relevant documentation can be found below:

For package usage

The sample program below demonstrates usage of proxy-extractor library

from proxy_extractor.extractor import extract_proxy

proxy_list = extract_proxy(https=True, proxy_count=10)
print(proxy_list)

it returns output as a list

The arguments https, proxy_count and timeout are optional.

  • https to display only https supportable proxies
  • proxy_count define number of proxies you want to extract (max. 300)
  • timeout number of seconds till the script will check if the proxy is working (default: 50)

For cmd usage

cli.py provides a grep-like command line interface to proxy-extractor library. You will need to install the library first to use it.

python cli.py --https --count 10
  • --https to display only https supportable proxies
  • --count define number of proxies you want to extract (max. 300)
  • --json to display proxies in json format
  • --timeout number of seconds till the script will check if the proxy is working (default: 50)

Contribute

Feel free to contribute to this repository.

About

Python package to extract free proxies from various free proxy listing sites

https://pypi.org/project/proxy-extractor/

License:GNU General Public License v3.0


Languages

Language:Python 100.0%