Proxer - get a free working proxy simply and free of charge
Project description
Proxer
Features
- Huge proxy database
- Parsing of new available proxies (with uniqueization function)
- You can use your own proxy database
- Cleaning of database, working proxies, and general proxy list
- Checking proxies for performance, using popular sites giants for verification
Documentation
Steps
Install
Copy repository
git clone https://github.com/ssshipilo/Proxer
Dependency installation
pip install -r requirements.txt
OR
Install library
pip install Proxer
Starting Proxer
Import the library into your project, and initialize the Proxer class, sample code to get 5 working proxies
import Proxer
proxy = Proxer(file_path_output=os.path.join(os.getcwd(), "output.txt"), file_path_save=os.path.join(os.getcwd(), "save.txt"))
result = proxy.get(5)
print(result)
Result:
Initialization
proxy = Proxer(file_path_output="path_to_output_file", file_path_save="path_to_save_file")
path must be absolute file_path_output: path to the file where the list of sparse proxies will be saved. file_path_save: path to the file where the list of working proxies will be saved.
Methods
parse()
Parsing of popular proxy providers:
- hidemyname: https://hidemy.name/en/proxy-list/
- free_proxy_list: https://free-proxy-list.net/
- proxyscrape: https://proxyscrape.com/
They may be added over time, or maybe they already are.
Arguments: path: path to the file where the proxy list will be written. By default - the path from file_path_output. returned_array: whether to return the array of sparse proxies. By default - False.
check_proxy()
Checking the proxy to make sure it works.
Arguments: proxy: proxy to check. _class: whether to save the working proxy to a file. The default is False.
update_db_proxy()
Updating the database of working proxies.
Arguments: path: (optional) - path to the list of sparser proxies file: True - from your file. The default is False. Make parsing of known services with proxy
get()
Get a working proxy.
Arguments: count: number of required proxies. The default is 1.
clear_db()
Cleaning databases, verified and unverified proxies.
Arguments: mode: cleaning mode. Can be "output" (unchecked proxies) or "save" (checked proxies). The default is None (clearing both databases). path_output: path to the file with unchecked proxies. path_save: path to the file with verified proxies.
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 Distribution
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 Proxer-1.3.3.tar.gz.
File metadata
- Download URL: Proxer-1.3.3.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef9ecf9ffcd121210578beb770d5e696e7f0a1074d013e47861fbc31eb35b94b
|
|
| MD5 |
056e4e1bd3d9d48a8851ba1bf3a27bd6
|
|
| BLAKE2b-256 |
fe89f646d0a48f4136f4ecbd7cb5923d17c05e61e9da9bba9433f0d653b01c68
|
File details
Details for the file Proxer-1.3.3-py3-none-any.whl.
File metadata
- Download URL: Proxer-1.3.3-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71ce9ca4ce40634708c0c94e7314c31f4c1abc92d7680d1ebecb3329309278fb
|
|
| MD5 |
9c7a48116295a787ee395ecfbfbf80e3
|
|
| BLAKE2b-256 |
12216f7345700d4510e9a2cff477352662a13d646a947b76c4e4557b313c753a
|