Re: lxml.xpath 'for/xpath' to get to a node and then xpath again within the loop?

2015-07-09 Thread Veek M
Mark Lawrence wrote: If it's provided why have you snipped it this time around? May I most humbly suggest that the next time you ask, please ensure that you tell us what you've googled for prior to putting your question. umm.. I can't determine what you mean by 'snipped it'. 1. I posted a

Re: lxml.xpath 'for/xpath' to get to a node and then xpath again within the loop?

2015-07-06 Thread Veek M
Saran Ahluwalia wrote: So what did you do to resolve this? Please provide your fix. This is an excellent case study for others. it's provided, what part didn't you understand? Try googling relative-path, wth? -- https://mail.python.org/mailman/listinfo/python-list

Re: lxml.xpath 'for/xpath' to get to a node and then xpath again within the loop?

2015-07-06 Thread Mark Lawrence
On 06/07/2015 10:40, Veek M wrote: Saran Ahluwalia wrote: So what did you do to resolve this? Please provide your fix. This is an excellent case study for others. it's provided, what part didn't you understand? Try googling relative-path, wth? If it's provided why have you snipped it this

Re: lxml.xpath 'for/xpath' to get to a node and then xpath again within the loop?

2015-07-02 Thread Saran Ahluwalia
So what did you do to resolve this? Please provide your fix. This is an excellent case study for others. Sent from my iPhone On Jul 2, 2015, at 5:34 AM, Veek M vek.m1...@gmail.com wrote: never mind fixed.. it's returning a list so whatever[0].text and relative-path for the xpath

Re: lxml.xpath 'for/xpath' to get to a node and then xpath again within the loop?

2015-07-02 Thread Veek M
never mind fixed.. it's returning a list so whatever[0].text and relative-path for the xpath -- https://mail.python.org/mailman/listinfo/python-list

lxml.xpath 'for/xpath' to get to a node and then xpath again within the loop?

2015-07-02 Thread Veek M
I travel to 'item-name', how do i quickly travel to c-price and then print both values of text. I tried: for anchor in element.xpath('//a[@class=item-name]'): #Travel to item-name but when i getparent and then call xpath I get a whole bunch of span elements as a list - why? Shouldn't xpath