Created
October 30, 2019 07:00
-
-
Save ScottBurfieldMills/f004ecf3888d4e68b10a8b6f5dc53e22 to your computer and use it in GitHub Desktop.
TODO do something with this
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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