Skip to content

Instantly share code, notes, and snippets.

@Daemonslayer2048
Last active June 11, 2019 13:29
Show Gist options
  • Save Daemonslayer2048/a12cdf90141faba6aa087c3752add090 to your computer and use it in GitHub Desktop.
Save Daemonslayer2048/a12cdf90141faba6aa087c3752add090 to your computer and use it in GitHub Desktop.
Pulling XML from URL #Python
from xml.dom import minidom
from urllib.request import urlopen
import requests
url = 'http://c.speedtest.net/speedtest-servers-static.php'
xmldoc = minidom.parse(urlopen(url))
itemlist = xmldoc.getElementsByTagName('server')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment