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::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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file free_proxy_list-0.0.2-py3-none-any.whl.
File metadata
- Download URL: free_proxy_list-0.0.2-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 |
24f08b97938db5c5fd040b847741804f7551f14bf9ea9b1cf662bcc6adf348c8
|
|
| MD5 |
025a3dc0bd0b2fff6a3e8a51d1b7c6ce
|
|
| BLAKE2b-256 |
cacf6f6e9f91cbe96324ee69b079f3c1cd376c27a45d2f056a5f396aa9f02fda
|