Skip to content

Instantly share code, notes, and snippets.

@rmcintosh
Last active January 17, 2017 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rmcintosh/924e5c19278ac1bbf8ea9c1e3b44c201 to your computer and use it in GitHub Desktop.
Save rmcintosh/924e5c19278ac1bbf8ea9c1e3b44c201 to your computer and use it in GitHub Desktop.
import urllib2
from xml.dom.minidom import parse, parseString
xml = urllib2.urlopen('https://update.joomla.org/core/list.xml')
parse_xml = parse(xml)
get_version = parse_xml.getElementsByTagName('extension')
print(get_version[-1].attributes['version'].value)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment