Compare commits

...

7 Commits

1
.gitignore vendored

@ -0,0 +1 @@
temp/

@ -0,0 +1,16 @@
# right now there is not support for .club.
# this has been released on master, but hasn't been pushed to pypi yet.
# this is fucking stupid, but ok, lets just get it working for .net for now.
import whois
import datetime
sites_to_check = [
'jowj.net',
]
current_year = datetime.datetime.today().year
for site in sites_to_check:
expire_year = whois.query(site).expiration_date.year
if expire_year - current_year <= 1:
pass # throw an alert, check into sending email / sending to slack

16
poetry.lock generated

@ -0,0 +1,16 @@
[[package]]
category = "main"
description = "Python package for retrieving WHOIS information of domains."
name = "whois"
optional = false
python-versions = "*"
version = "0.9.5"
[metadata]
content-hash = "95fa913a055b45bd7b7cf0049f61b7bdbc722adc80db08a2de030cb966f7753b"
python-versions = "^3.8"
[metadata.files]
whois = [
{file = "whois-0.9.5.tar.gz", hash = "sha256:7958e2ae442c888b6d666a966c2469ca477e3c367f813807b6ce9a83ac12802f"},
]

@ -0,0 +1,15 @@
[tool.poetry]
name = "jlj-utils"
version = "0.1.0"
description = "my personal utilities"
authors = ["jowj <me@jowj.net>"]
[tool.poetry.dependencies]
python = "^3.8"
whois = "^0.9.5"
[tool.poetry.dev-dependencies]
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"

@ -11,7 +11,18 @@ youtube-dl is fucking amazing. its one of the coolest / most useful things maint
- declare a flag that determines what library the target should go to
- video vs audio right now
### DWIM naming history
## get-domain-status
using the whois package, get the status of my domains. send an email under the following conditions:
- the domain is < 90 days away from expiring
- the SSL is < 30 days away from expiring
### todo:
- [ ] wait until the .club tld support is merged in, add my other domains to the list of shit to check
- [ ] add SSL checking to the script
- [ ] add email / slack alerting to the script.
- [ ] eventually move this to the `arke` project so that its deployed to my servers and alerted on consistently
# DWIM naming history
dwim comes from someone in the history of LISP. i like the connotation of doing what /i/, in particular, mean, rather than the general 'try and figure out what i mean' that it has in history.

Loading…
Cancel
Save