Skip to content

Instantly share code, notes, and snippets.

@ScottBurfieldMills
Created October 30, 2019 07:00
Show Gist options
  • Save ScottBurfieldMills/f004ecf3888d4e68b10a8b6f5dc53e22 to your computer and use it in GitHub Desktop.
Save ScottBurfieldMills/f004ecf3888d4e68b10a8b6f5dc53e22 to your computer and use it in GitHub Desktop.
TODO do something with this
import requests
def handle_colo(colo):
print("do something with colo " + colo)
response = requests.get("http://archipro.co.nz/cdn-cgi/trace")
key_values = response.text.split('\n')
[handle_colo(x.split('=')[1]) for x in key_values if x.startswith('colo')]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment