I am running python 2.7.2 I have lxml and cssselect installed
My code
from lxml import etree, html r = html.parse(start_url) all_titles = r.cssselect('span.titles')
I am clearing a webpage with names and related links.
But I ran into this error: Object 'lxml.etree._ElementTree' does not have attribute 'cssselect'
python lxml
clw
source share