Guest User

Untitled

a guest
Oct 17th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. import urllib2
  2. from xml.dom import minidom
  3.  
  4. p = urllib2.urlopen("bleeeeeeep.xml")
  5. x = p.read()
  6. doc_ob = minidom.parseString(x)
  7. print(doc_ob.toprettyxml())
  8. len(doc_ob.getElementsByTagName('item'))
Add Comment
Please, Sign In to add comment