如何从';a';python中使用scrapy的标记? “盖洛德国家度假村和会议中心”

如何从';a';python中使用scrapy的标记? “盖洛德国家度假村和会议中心”,python,scrapy,Python,Scrapy,如何使用scrapy在python中从上方获取文本马里兰州国家港口、盖洛德国家度假村和会议中心?您可以查看 要实现页面上所有锚定标记的目标,您可以使用: <div class="breadcrumbs pt10 pb10"> <a>Location :</a> "National Harbor , Maryland" <br> <a href="#" class="ty

如何使用scrapy在python中从上方获取文本马里兰州国家港口、盖洛德国家度假村和会议中心?

您可以查看

要实现页面上所有锚定标记的目标,您可以使用:

<div class="breadcrumbs pt10 pb10">
<a>Location :</a> 
"National Harbor                    ,
                Maryland" 
<br>
<a href="#" class="type">Venue : </a>
"Gaylord National Resort & Convention Center "
</div>

我应用了这个代码..“response.selector.xpath('//div[@class=“breadcrumbs pt10 pb10”]/a/text()).extract()“…但是我的o/p是这样的..”[u'Location:',u'vince:']“@surfer190..你能给我回复上面的一个吗..字符串前面的
u
表示
unicode
。这可能是使用python
3.6
link_text_list = response.selector.xpath('//a/text()').extract()