Skip to content

Hourly OpenProxyList Fetch #271

Hourly OpenProxyList Fetch

Hourly OpenProxyList Fetch #271

name: Hourly OpenProxyList Fetch
on:
schedule:
- cron: '0 * * * *' # Runs every hour
workflow_dispatch:
jobs:
fetch-openproxylist:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests
- name: Fetch proxy list
run: |
cd Lists/PROXY/openproxylist.xyz
python3 fetch_proxy_list.py
- name: List updated files
run: ls -lah Lists/PROXY/openproxylist.xyz
- name: Commit and Push results
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git pull
git add Lists/PROXY/openproxylist.xyz/*
git commit -m "Update hourly OpenProxyList proxy list" --allow-empty
git push