Extend expiry date of euserv.com
Update 20211102: No longer works. Euserv has implemented a new mechanism (PIN via email) for extending expiry date. Automatic renewal will be difficult if not impossible.
-
Fork this repo https://github.com/ffreemt/extend-euserv/fork
-
Set the resultant repo
Secrets
Name Value EUSERV_EMAIL: your_euserv_email EUSERV_PASSWORD: your_euserv_password -
[Optionally] Change
crontab
in line 6 of.github/workflows/schedule-extend-euserv.yml
(link) to your like. (This online crontab editor may come handy https://crontab.guru/#0_0_/9__*)
not ready yet pip install extend-euserv
or clone https://github.com/ffreemt/extend-euserv and install from the repo.
python -m extend-euserv -u your_euserv_email -p password
or use directly the extend-euserv
script:
extend-euserv -u your_euserv_email -p password
- Set email/password from the command line:
set EUSERV_EMAIL=your_euserv_email # export in Linux or iOS set EUSERV_PASSWORD=password
- Or set email/password in .env, e.g.,
# .env EUSERV_EMAIL=your_euserv_email EUSERV_EMAIL=password
Run extend-euserv
or python -m extend_euserv
:
extend-euserv
or
python -m extend_euserv
extend-euserv -i
or
python -m extend_euserv -i
extend-euserv -d
or
python -m extend_euserv -d
extend-euserv --helpshort
or
python -m extend_euserv --helpshort
You can configure EUSERV_HEADFUL
, EUSERV_DEBUG
and EUSERV_PROXY
in the .env
file in the working directory or any of its parent directoreis. For example,
# .env
EUSERV_HEADFUL=1
EUSERV_DEBUG=true
# EUSERV_PROXY
It's straightforward to setup extend-euserv
to run via Github Actions, best with an infrequent crontab.
- Fork this repo
- Setup
Actions secrets
viaSettings/Add repository secrets
:
Name | Value |
---|---|
EUSERV_EMAIL: | your_euserv_email |
EUSERV_PASSWORD: | your_euserv_password |
For example, in .github/workflows/schedule-extend-euserv.yml
name: schedule-extend-euserv
on:
push:
schedule:
- cron: '10,40 3 */9 * *'
...
setup, e.g. pip install -r requirements.txt or
poetry install --no-dev
...
- name: Testrun
env:
EUSERV_EMAIL: ${{ secrets.EUSERV_EMAIL }}
EUSERV_PASSWORD: ${{ secrets.EUSERV_PASSWORD }}
run: |
python -m extend_euserv -d -i