I want to extract the user reviews of a particular movie with help of lxml. Before that, I need to find out the number of reviews first.
An example review page is Interstellar
I found the XPath where User Reviews are found with the help of Firebug:
/html/body/div[1]/div/layer/div[4]/div[3]/div[3]/div[3]/table[2]/tbody/tr/td[2]
I have this code to extract that line
reviewPage = lxml.html.document_fromstring(requests.get("http://www.imdb.com/title/tt0816692/reviews?start=0").content)
number_of_reviews = reviewPage.xpath("/html/body/div[1]/div/layer/div[4]/div[3]/div[3]/div[3]/table[2]/tbody/tr/td[2]")[0]
However, on printing the number of reviews, I get nothing. What is the problem ?