python - Scrapy returns wrong font -


i using scrapy collect data , when try scrape tag element craiglist returns font different other elements. how can make font in left column font in right one? here picture , code using:

  item["tag"] = " ".join(response.xpath("//p[@class='attrgroup']/span/b/text()").extract()[0]) 

how can make font in left column font in right one?

try using response.xpath("string(//p[@class='attrgroup'])") instead.


Comments

Popular posts from this blog

html - How can i make an element from a bottom stacking context stays in front of another higher stacking context? -

python - TypeError: start must be a integer -

html - href attribute breaking an element -