Skip to content

Instantly share code, notes, and snippets.

@nandff
Created June 9, 2011 15:10
Show Gist options
  • Save nandff/1016925 to your computer and use it in GitHub Desktop.
Save nandff/1016925 to your computer and use it in GitHub Desktop.
one liner: get kml from "View in Google Earth" of Google maps My Maps
python -c 'import sys,urllib2,lxml.etree;sys.stdout.write(urllib2.urlopen(lxml.etree.parse(open(sys.argv[1])).xpath('"'"'//*[local-name() = "href"]'"'"')[0].text).read())'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment