I am trying to scrape the text data from a specific element on this page (using scraperwiki)
import requests
from lxml import html
response = requests.get(http://portlandmaps.com/detail.cfm?action=Assessor&propertyid=R246274)
tree = html.fromstring(response.content)
owner = tree.xpath('/html/body/div[2]/table[1]/tbody/tr[11]/td[2]')
print owner.text
And the scraperwiki console returns:
AttributeError: 'list' object has no attribute 'text'
I used Google Chrome to find the XPath but I assume requests uses the same standards as chrome