Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/volkansah/auto-proxy-fetcher
Automatically fetch and update proxy lists from multiple sources every 6 hours using GitHub Actions
https://github.com/volkansah/auto-proxy-fetcher
api automation fetch free github-actions http-proxies networking proxy proxy-list python scraping
Last synced: 8 days ago
JSON representation
Automatically fetch and update proxy lists from multiple sources every 6 hours using GitHub Actions
- Host: GitHub
- URL: https://github.com/volkansah/auto-proxy-fetcher
- Owner: VolkanSah
- License: gpl-3.0
- Created: 2024-10-24T05:21:50.000Z (20 days ago)
- Default Branch: main
- Last Pushed: 2024-11-01T01:40:44.000Z (12 days ago)
- Last Synced: 2024-11-01T02:27:07.715Z (12 days ago)
- Topics: api, automation, fetch, free, github-actions, http-proxies, networking, proxy, proxy-list, python, scraping
- Language: Python
- Homepage: https://raw.githubusercontent.com/VolkanSah/Auto-Proxy-Fetcher/refs/heads/main/proxies.txt
- Size: 723 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Auto Proxy Fetcher
A tool for automatically fetching proxy servers and updating `proxies.txt` using GitHub Actions. You can either use my existing proxy list or set up your own version of this repository.
## Using the Proxy List
You can directly use the proxy list generated by this tool for your own programs, scripts, or applications. The proxy list is updated every 6 hours and is accessible via this URL (time in GMT 0):
```bash
https://raw.githubusercontent.com/VolkanSah/Auto-Proxy-Fetcher/refs/heads/main/proxies.txt
```### Example Usage
You can use `curl` to download the proxy list directly:
```bash
curl https://raw.githubusercontent.com/VolkanSah/Auto-Proxy-Fetcher/refs/heads/main/proxies.txt -o proxies.txt
```Or, you can integrate it into a Python script:
```python
import requestsurl = "https://raw.githubusercontent.com/VolkanSah/Auto-Proxy-Fetcher/refs/heads/main/proxies.txt"
response = requests.get(url)if response.status_code == 200:
with open('proxies.txt', 'w') as f:
f.write(response.text)
else:
print(f"Failed to fetch proxies: {response.status_code}")
```## Why Every 6 Hours?
Proxies, especially reliable ones, don't change frequently. Therefore, fetching proxies every 6 hours is optimal because:
- **Stability:** Trusted proxy sources update less frequently.
- **Efficient Use of Resources:** By fetching every 6 hours, GitHub Actions minutes are conserved.
- **Rate Limiting Prevention:** Regular fetching avoids triggering rate limits on the proxy sources.
- **Server Load:** It helps reduce the load on the proxy provider servers, ensuring better service for all users.## How to Set Up Your Own Version
If you want to use this tool on your own GitHub account and customize the workflow, follow these steps:
1. **Fork the Repository:**
- Go to the [Auto Proxy Fetcher Repository](https://github.com/VolkanSah/Auto-Proxy-Fetcher).
- Click on the "Fork" button to create a copy on your own GitHub account.2. **Set Up GitHub Actions Workflow:**
- In your forked repository, go to the "Actions" tab.
- The workflow should be automatically enabled.
- You can manually start it by clicking the "Run workflow" button.3. **Automatic Updates:**
- The workflow will automatically run every 6 hours.
- It will update `proxies.txt` with the latest proxy list and commit it to your repository.By following these steps, you'll have your own proxy fetching tool running on GitHub Actions with customized settings.
Your support is greatly appreciated. If you find this tool useful, consider ⭐ the project on GitHub or becoming a [Sponsor](https://github.com/sponsors/volkansah).
### copyright
**S. Volkan Kücükbudak**