How can we traverse back to parent in xpath?
I am crawling IMDB, to obtain genre of films, I am using
elem = hxs.xpath('//*[@id="titleStoryLine"]/div/h4[text()="Genres:"]')
Now,the genres are listed as anchor links, which are siblings to this tag. how can this be achieved?