This package is to get free proxy ips and port number for scraping and for testing on proxy.
Project description
Free Proxy List
This library is for testing purpose while scraping.
Installation
pip install free-proxy-list
Usage
from proxy_list import ProxyList
proxy_list = ProxyList()
Get all Proxies?
Request
Call get_all_proxies()
to all the proxies in list form with its ports.
proxy_list.get_all_proxies()
Response
The response would be in form of multiple list of IP and Port.
[('0.0.0.0','8080'),('0.0.0.0','9090'), and so on]
Get Random Proxy?
Request
Call get_random_proxy()
to get a single proxy to use directly in code.
proxy_list.get_random_proxy()
Response
The response would be in form of dictionary
of IP and Port.
{'https': '0:0:0.0:8080'}
How to use in requests?
Official documentation of requests. Requests
from proxy_list import ProxyList
proxies = ProxyList()
r = requests.get(url, proxies=proxies.get_random_proxy())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file free_proxy_list-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: free_proxy_list-0.0.3-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91eb68cb4659bae10bd3c903e0ebd6d51c5b84c5f71d4ca10f5aea64a7e2ddf0 |
|
MD5 | abf63d698bceb286df5560977ba5d3f7 |
|
BLAKE2b-256 | 3f113cc7d14154d44d59404e8cf6107b1ffcb61687782342e7416aa6a650215b |