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

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -