📡 Link2Proxy 📡
Introduction
Welcome to Link2Proxy, a Python module that allows you to easily fetch and rotate proxies automatically. Whether you're scraping websites or need proxies for testing purposes, Link2Proxy helps you get free proxies from multiple sources, store them locally, and use them to make requests.
📝 Installation
To install Link2Proxy, you can clone this repository or install it via pip once the module is uploaded to PyPI.
pip install link2proxy
🔧 Usage
get_proxies()
This function allows you to fetch proxies from multiple online sources and store them locally in a file.
Example:
import link2proxy
# Fetch proxies from the available sources and save them to a file
link2proxy.get_proxies()
-
Description:
- Fetches proxies from various online sources (e.g., spys.me, sslproxies.org, etc.).
- Proxies are stored in a local file (
link2proxy.txt). - This is useful if you need to periodically refresh your proxy list.
-
Parameters:
- No parameters are needed.
-
Returns:
- No return value. The proxies are saved in the local file.
get_proxy()
This function retrieves a proxy from the local file where they are stored. If the file is empty, it will automatically call get_proxies() to populate the list with fresh proxies.
Example:
import link2proxy
# Get a proxy and use it for a request
proxy = link2proxy.get_proxy()
print(requests.get('https://google.com', proxies=proxy).status_code)
-
Description:
- Fetches one proxy from the saved list (stored in
link2proxy.txt). - If the file is empty, it triggers
get_proxies()to fetch fresh proxies.
- Fetches one proxy from the saved list (stored in
-
Parameters:
- No parameters are needed.
-
Returns:
- A dictionary containing a proxy for both
httpandhttps:{"http://": "http://<proxy>", "https://": "https://<proxy>"}
- A dictionary containing a proxy for both
📄 File Structure
The proxies are stored in a file called link2proxy.txt inside a folder called proxies in the root directory of your project. This file will contain a list of proxies in the format ip:port.
Example of file structure:
/project_directory
/proxies
link2proxy.txt
⚠️ Disclaimer
- Please use this program only for educational purposes.
- It is not meant to be used in any malicious way, and I decline any responsibility for what you do with it.
🔗 Connect with Zarby 🔗
Metadata
Release files for link2proxy 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| link2proxy-0.1.0.tar.gz | 3.9 kB | Without provenance | Details for link2proxy-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| link2proxy-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for link2proxy-0.1.0-py3-none-any.whl |
Total release size: 7.9 kB
Release files / link2proxy-0.1.0.tar.gz
| Download URL | link2proxy-0.1.0.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6a1feb2f73b055c03e20b860df04632b38c4a627aa18d8eafbbf103252bf68a6
|
|
BLAKE2b-256 checksum How to use checksums |
5fc0dd972ec94263da3f0bf4ad14e2e251857bda72ca36f48fd78bdec44ad47d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.9
|
Release files / link2proxy-0.1.0-py3-none-any.whl
| Download URL | link2proxy-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c478028cc8963b130853fb2f66a3fc1318d3e304d5e32bb53f66f50afd4fded4
|
|
BLAKE2b-256 checksum How to use checksums |
b50dfde992a9204b390f4460080c6eed1c0616227847de52395599a1a7b6e305
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.9
|
Security for link2proxy 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.