Skip to content Skip to sidebar Skip to footer

Parsing Stray Text With Scrapy

Any idea how to extract 'TEXT TO GRAB' from this piece of markup:
sel = Selector(text=content)
item = ''.join([' '.join(items.split()) for items in sel.css("span.navigation_page::text").extract()])
print(item)

Output:

TEXTTO GRAB

Post a Comment for "Parsing Stray Text With Scrapy"