Hacker GitHub

← All repos

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

Mentions per year 5 mentions · busiest year 2018 (2)
20082026
  1. ….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...
  2. 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
  3. …by scrapy) to be an easier to use HTML parsing library than Beautiful Soup. That's just imo. [1] https://github.com/scrapy/parsel
  4. …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
  5. …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