I am running python 2.7.2 I have lxml and cssselect installed
My code is
from lxml import etree, html
r = html.parse(start_url)
all_titles = r.cssselect('span.titles') #should return a list of results
all_urls = r.cssselect('span.links') #and this as well
I am scraping a webpage that has titles and their associated links.
But I run into this error: 'lxml.etree._ElementTree' object has no attribute 'cssselect'