Compare commits

...

2 Commits

Author SHA1 Message Date
Em aeaaf1c0a9
create requirements.txt for each type of script 2021-11-02 07:47:39 -04:00
Em ee2249fb4f
add systemd files for everything 2021-11-02 07:44:15 -04:00
16 changed files with 158 additions and 2 deletions

12
openproxyherder.service Normal file
View File

@ -0,0 +1,12 @@
[Unit]
Description=oph server
Wants=network.target
After=network.target
[Service]
WorkingDirectory=/home/oph/.local/openproxyherder/
ExecStart=/home/oph/.local/openproxyherder/.env/bin/python openproxyherder.py
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,3 @@
pycurl
pyyaml
requests

View File

@ -0,0 +1,13 @@
[Unit]
Description=httpsocks checker
Wants=network.target
After=network.target
[Service]
Type=oneshot
Environment=PYTHONUNBUFFERED=1
WorkingDirectory=/root/openproxyherder/scripts/checkers
ExecStart=/usr/bin/python3 http_socks.py
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,10 @@
[Unit]
Description=http_socks timer
[Timer]
OnCalendar=*:00/3
Persistent=true
RandomizedDelaySec=120
[Install]
WantedBy=timers.target

View File

@ -0,0 +1,12 @@
[Unit]
Description=vpngate checker
Wants=network.target
After=network.target
[Service]
Type=oneshot
WorkingDirectory=/root/openproxyherder/scripts/checkers
ExecStart=/usr/bin/python3 vpngate.py
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,10 @@
[Unit]
Description=vpngate timer
[Timer]
OnCalendar=*:00/3
Persistent=true
RandomizedDelaySec=120
[Install]
WantedBy=timers.target

View File

@ -1,6 +1,5 @@
bs4
html5lib
psycopg2
pycurl
pyyaml
requests
requests

View File

@ -0,0 +1,13 @@
[Unit]
Description=oph dronebl checker
Wants=network.target
After=network.target
[Service]
Type=oneshot
WorkingDirectory=/home/oph/.local/openproxyherder/scripts/dronebl/
ExecStart=/home/oph/.local/openproxyherder/.env/bin/python dronebl_check_tickets.py
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,10 @@
[Unit]
Description=dronebl check tickets timer
[Timer]
OnCalendar=*:0/10
RandomizedDelaySec=120
Persistent=true
[Install]
WantedBy=timers.target

View File

@ -0,0 +1,13 @@
[Unit]
Description=oph dronebl submitter
Wants=network.target
After=network.target
[Service]
Type=oneshot
WorkingDirectory=/home/oph/.local/openproxyherder/scripts/dronebl/
ExecStart=/home/oph/.local/openproxyherder/.env/bin/python dronebl_submitter.py
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,10 @@
[Unit]
Description=dronebl submitter timer
[Timer]
OnCalendar=*:0/5
RandomizedDelaySec=120
Persistent=true
[Install]
WantedBy=timers.target

View File

@ -0,0 +1,5 @@
bs4
html5lib
psycopg2
pyyaml
requests

View File

@ -0,0 +1,13 @@
[Unit]
Description=oph regex scraper
Wants=network.target
After=network.target
[Service]
Type=oneshot
WorkingDirectory=/home/oph/.local/openproxyherder/scripts/gatherers/
ExecStart=/home/oph/.local/openproxyherder/.env/bin/python regex_scraper.py
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,10 @@
[Unit]
Description=regex scraper timer
[Timer]
OnCalendar=*:0/10
RandomizedDelaySec=300
Persistent=true
[Install]
WantedBy=timers.target

View File

@ -0,0 +1,13 @@
[Unit]
Description=vpngate api scraper
Wants=network.target
After=network.target
[Service]
Type=oneshot
WorkingDirectory=/home/oph/.local/openproxyherder/scripts/gatherers/
ExecStart=/home/oph/.local/openproxyherder/.env/bin/python vpngate_api.py
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,10 @@
[Unit]
Description=vpngate api timer
[Timer]
OnCalendar=*:0/10
RandomizedDelaySec=300
Persistent=true
[Install]
WantedBy=timers.target