I hereby claim:
- I am hitecherik on github.
- I am hitecherik (https://keybase.io/hitecherik) on keybase.
- I have a public key ASBlVZAfTfN5GI_5MmCF47lnl1TFMwkkoL8Ub66fXomwuAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
from login import USERNAME, PASSWORD | |
from datetime import datetime | |
import os, re, requests, shutil | |
pdf_prefix = "C1" | |
def main(): | |
try: | |
shutil.rmtree("papers") | |
except OSError: |
(function() { | |
function newXHR() { | |
if (window.ActiveXObject) { | |
try { | |
return new ActiveXObject("Microsoft.XMLHTTP"); | |
} catch (e) { | |
console.error(e.message); | |
return null; | |
} | |
} |
import urllib.request | |
import json | |
postcode = input("Please enter your postcode: ") | |
url = "http://uk-postcodes.com/postcode/" + postcode + ".json" | |
request = urllib.request.Request(url, headers={"User-Agent": "I'm not a bot"}) | |
content = urllib.request.urlopen(request).read().decode() |