Mercurial > codedump
diff getdate.py @ 64:1508aee998df
Add Windows 95 Keygen GUI
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Mon, 25 Apr 2022 02:10:41 -0400 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/getdate.py Mon Apr 25 02:10:41 2022 -0400 @@ -0,0 +1,10 @@ +import json +import sys +import datetime + +with open(sys.argv[1]) as f: + data = json.load(f) + print(data['fulltitle'] + " [{0}]".format(data["uploader"]), end="\n\n-----------------\n\n") + upload_date = datetime.datetime(int(data["upload_date"][:-4]), int(data["upload_date"][4:][:-2]), int(data["upload_date"][6:])) + print("Published on " + f"{upload_date.strftime('%b')} {upload_date.strftime('%d').strip('0')}, {upload_date.strftime('%Y')}", end="\n\n") + print(data["description"])