Skip to content

Instantly share code, notes, and snippets.

@spacekookie
Last active December 27, 2017 10:48
Show Gist options
  • Save spacekookie/d1b3a8383bf7933b3fddc466cd84720d to your computer and use it in GitHub Desktop.
Save spacekookie/d1b3a8383bf7933b3fddc466cd84720d to your computer and use it in GitHub Desktop.
import json, requests
url = 'https://eventphone.de/guru2/phonebook?event=34C3&s=&page=1&format=json'
resp = requests.get(url=url, params=None)
output = json.loads(resp.text)
free_numbers = list(range(2100, 9999))
for entry in output:
try:
num = int(entry['extension'])
free_numbers.remove(num)
except Exception as e:
continue
print('##############################################################################################')
print("## ______ _ _ _ ##")
print("## | ____| | \ | | | | ##")
print("## | |__ _ __ ___ ___ | \| | _ _ _ __ ___ | |__ ___ _ __ ___ ##")
print("## | __| | '__| / _ \ / _ \ | . ` | | | | | | '_ ` _ \ | '_ \ / _ \ | '__| / __| ##")
print("## | | | | | __/ | __/ | |\ | | |_| | | | | | | | | |_) | | __/ | | \__ \\ ##")
print("## |_| |_| \___| \___| |_| \_| \__,_| |_| |_| |_| |_.__/ \___| |_| |___/ ##")
print("## ##")
print('##############################################################################################')
print("")
print(free_numbers)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment