Compare commits
7 Commits
b6e567c93a
...
9c5d75d5e4
Author | SHA1 | Date |
---|---|---|
jowj | 9c5d75d5e4 | 4 years ago |
jowj | 8a143f7436 | 4 years ago |
jowj | 6ae322c116 | 4 years ago |
jowj | 303f697068 | 4 years ago |
jowj | 2c82bd2d97 | 4 years ago |
jowj | 9e6b53ae95 | 4 years ago |
jowj | e168114fc4 | 4 years ago |
@ -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
|
@ -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"
|
Loading…
Reference in new issue