MerchantryTidbits

scraping / library

Parsel

Capability: Parsel

Use it when

  • CSS and XPath extraction on HTML responses in scrapy-style code
  • parse HTML/XML with scrapy selector syntax without full scrapy spider

What it solves

Install

pip install parsel

Invoke

from parsel import Selector; sel = Selector(text=html); sel.css('a::attr(href)').getall()

Alternatives

No reviewed alternatives recorded yet.