Parsel
Parsel is a Python library licensed to BSD that allows data to be extracted from HTML, JSON and XML documents. It supports XPath statements with CSS for HTML and XML files, and JMESPath statements for JSON documents. It also offers the possibility of processing data in regular expressions (regular expressions).
PA
Parsel
100scrapy · Web Scraping & Automation
STARS1.4K
FORKS179
COMMITS—
CONTRIBUTORS53
VERSIONv1.9.1
UPDATEDtoday
Web ScrapingPythonXPathCSS SelectorsBSD / ISC
Common commercial products in this category: Bright Data, Apify, ScrapingBee
What can it do?
- You pull data from HTML and XML documents using CSS or XPath expressions
- In JSON documents you query with JMESPath statements
- You perform sorting operations with regular expressions on text data
User reviews
- ↓ NegativeGitHub Issue
Support "html5" type to use html5lib parser
“[Every]( [now]( and [then]( we get a bug report about some HTML source not being parsed as a browser would. There was the idea in Scrapy of [adding an "html5" type]( to switch to an HTML5 compliant parser. One of these is [html5lib]( that can be used with lxml.”