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
Post a Comment