-
Notifications
You must be signed in to change notification settings - Fork 4
48 lines (40 loc) · 1.22 KB
/
getProxy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Get Proxies and push proxies
on:
schedule:
- cron: '0 */3 * * *'
push:
branches:
- main
permissions:
contents: write
jobs:
get_proxies:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Getting proxies
run: |
python3 proxyScraper.py -p http -o proxies/http.txt
python3 proxyScraper.py -p https -o proxies/https.txt
python3 proxyScraper.py -p socks4 -o proxies/socks4.txt
python3 proxyScraper.py -p socks5 -o proxies/socks5.txt
- name: Commit
run: |
git config --global user.email github-actions@github.com
git config --local user.name github-actions[bot]
git commit -am "feat: update proxies"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
env:
CI: true