如何使用 CSS 和 XPath 获取地址?我尝试使用 CSS:response.css('.office-address::text').extract()
<span class="office-address" itemprop="address" itemscope="" itemtype="http://schema.org/PostalAddress">
<span itemprop="streetAddress">
<span class="address-line1">5835 Post Rd.</span>
<span class="address-line2">Suite 217</span>
</span>
<span class="city-state-zip">
<span itemprop="addressLocality">East Greenwich</span>, <span itemprop="addressRegion">RI</span> <span itemprop="postalCode">02818</span>
</span>
</span>
慕无忌1623718
jeck猫
PIPIONE
郎朗坤
相关分类