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
On Mon, Sep 19, 2011 at 9:20 PM, Sander Sweers wrote:
> On 17/09/11 13:08, lists wrote:
>>
>> I have been trying to learn how to parse XML with Python and learn how
>> to use xml.etree. Lots of the tutorials seem to be very long winded.
>>
>> I'm trying to access a UK postcode API at www.uk-postco
On 17/09/11 13:08, lists wrote:
I have been trying to learn how to parse XML with Python and learn how
to use xml.etree. Lots of the tutorials seem to be very long winded.
I'm trying to access a UK postcode API at www.uk-postcodes.com to take
a UK postcode and return the lat/lng of the postcode.
Thanks Tim,
Will do.
Chris
On Mon, Sep 19, 2011 at 11:05 AM, Tim Golden wrote:
> On 19/09/2011 11:01, Tim Golden wrote:
>>
>> you're more likely to find people familiar with the package (including
>> its maintainer in fact...)
>
> Sorry, I misread your post and thought you were referring lxml.e
On 19/09/2011 11:01, Tim Golden wrote:
you're more likely to find people familiar with the package (including
its maintainer in fact...)
Sorry, I misread your post and thought you were referring lxml.etree
(which is a 3rd-party lib). My basic point still stands, though:
you'll get more library-
On 19/09/2011 10:46, lists wrote:
Hello again.
So, any xml.etree experts out there who might have missed this over the weekend?
Not me, I'm afraid, but might I suggest that you ask on the mail
Python list:
http://mail.python.org/mailman/listinfo/python-list
There's nothing wrong with askin
Hello again.
So, any xml.etree experts out there who might have missed this over the weekend?
Thanks in advance!
Chris
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
Hi Tutors,
I have been trying to learn how to parse XML with Python and learn how
to use xml.etree. Lots of the tutorials seem to be very long winded.
I'm trying to access a UK postcode API at www.uk-postcodes.com to take
a UK postcode and return the lat/lng of the postcode. This is what the
XML
11 matches
Mail list logo