<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Oct 7, 2014 at 7:50 PM, Danny Yoo <span dir="ltr"><<a href="mailto:dyoo@hashcollision.org" target="_blank">dyoo@hashcollision.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Juan,<br>
<br>
I think you're looking for:<br>
<br>
<a href="http://effbot.org/zone/element.htm#searching-for-subelements" target="_blank">http://effbot.org/zone/element.htm#searching-for-subelements</a><br>
<br>
where you should be able to do something like:<br>
<br>
sml._xml.findtext('steamID64')<br>
<br>
to get the text "76561198084537782".<br>
<br>
<br>
Let's check:<br>
<br>
###################################################################<br>
>>> import xml.etree.ElementTree<br>
>>> import urllib<br>
>>> f = urllib.urlopen("<a href="http://steamcommunity.com/profiles/76561198084537782?xml=1" target="_blank">http://steamcommunity.com/profiles/76561198084537782?xml=1</a>")<br>
>>> tree = xml.etree.ElementTree.ElementTree(file=f)<br>
>>> tree.findtext('steamID64')<br>
'76561198084537782'<br>
###################################################################<br>
<br>
<br>
Yup, this looks relatively straightforward. Let us know if you hit any snags.<br></blockquote><div><br></div><div>Exactly what I needed, thanks! </div></div><br></div></div>