scrapy - How do I select attributes with colons in them with XPath -


i want xmlns:fb attribute from:

<html xmlns:fb="http://www.facebook.com/2008/fbml"></html> 

it doesn't work if use:

hxs.select('//html/@xmlns:fb') 

you may use //html/namespace::fb instead of //html/@xmlns:fb uri 'http://www.facebook.com/2008/fbml'


Comments

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

php - Boolean search on database with 5 million rows, very slow -

css - Text drops down with smaller window -