scrapy/parsel
View on GitHub ↗ ★ 1,368 Python
Parsel lets you extract data from XML/HTML documents using XPath or CSS selectors
5 mentions on Hacker News by 4 people: 0 stories, 5 comments · first 2016-02-05 · latest 2025-03-29
20082026
-
….css() flavor gets complied down into .xpath() but there is no contest about their expressivity: https://github.com/scrapy/parsel/blob/v1.9.1/parsel/csstrans...
comment by mdaniel · 2025-03-29 · in Xee: A Modern XPath and XSLT Engine in Rust -
Try Parsel: https://github.com/scrapy/parsel It's way faster and has better support for CSS selectors.
comment by zatarc · 2021-09-13 · in How to Crawl the Web with Scrapy -
…by scrapy) to be an easier to use HTML parsing library than Beautiful Soup. That's just imo. [1] https://github.com/scrapy/parsel
comment by AdamM12 · 2018-06-11 · in Amazon2csv: Amazon products scraper to CSV (no API token required) -
…priority. In parsel we're re-encoding text to utf8, and forcing utf8 parser for lxml to solve it: https://github.com/scrapy/parsel/blob/f6103c8808170546ecf046... . * when extracting links, it is not enough to use raw @href attribute…
comment by kmike84 · 2018-02-26 · in Requests-HTML: HTML Parsing for Humans -
…up with an example if you like? I'm not sure what problems did you have. Scrapy selectors library ( https://github.com/scrapy/parsel ) is quite similar to PyQuery (esp. when CSS selectors are used), and nothing prevents you from using…
comment by kmike84 · 2016-02-05 · in Python 3 comes to Scrapy