On Tue, Oct 7, 2014 at 7:50 PM, Danny Yoo wrote:
> Hi Juan,
>
> I think you're looking for:
>
> http://effbot.org/zone/element.htm#searching-for-subelements
>
> where you should be able to do something like:
>
> sml._xml.findtext('steamID64')
>
> to get the text "76561198084537782".
>
>
>
>> It's working, the thing is that I don't know how to "navigate" inside the
>> XML, I read the doc but everything there regarding key-value is on
>> for-loops, I need something more direct, like:
Hi Juan,
I think you're looking for:
http://effbot.org/zone/element.htm#searching-for-subeleme
On Tue, Oct 7, 2014 at 4:08 PM, Juan Christian
wrote:
> I have this XML scheme:
> http://steamcommunity.com/profiles/76561198084537782?xml=1
>
> My code:
>
> self._xml = ElementTree.fromstring(requests.get(url + '?xml=1').content)
> print(self._xml.tag) > returns > profile
>
> It's working, the t
I have this XML scheme:
http://steamcommunity.com/profiles/76561198084537782?xml=1
My code:
self._xml = ElementTree.fromstring(requests.get(url + '?xml=1').content)
print(self._xml.tag) > returns > profile
It's working, the thing is that I don't know how to "navigate" inside the
XML, I read the