parsel
Parsel lets you extract data from XML/HTML documents using XPath or CSS selectors (by scrapy)
soupsieve
A modern CSS selector implementation for BeautifulSoup (by facelessuser)
Our great sponsors
parsel | soupsieve | |
---|---|---|
4 | 2 | |
874 | 154 | |
1.9% | - | |
8.4 | 4.9 | |
10 days ago | 2 months ago | |
Python | Python | |
BSD 3-clause "New" or "Revised" License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
parsel
Posts with mentions or reviews of parsel.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-10-07.
-
13 ways to scrape any public data from any website
variable.css(".X5PpBb::text").get() # returns a text value variable.css(".gs_a").xpath("normalize-space()").get() # https://github.com/scrapy/parsel/issues/192#issuecomment-1042301716 variable.css(".gSGphe img::attr(srcset)").get() # returns a attribute value variable.css(".I9Jtec::text").getall() # returns a list of strings values variable.xpath('th/text()').get() # returns text value using xpath
-
Web Scraping With Python (An Ultimate Guide)
Something I don't see discussed when this topic is brought up is that Scrapy's HTML parsing library, parsel, can be installed separately from scrapy itself. You can use it in place of beautifulsoup and, imo, it's much easier to use.
- How to Crawl the Web with Scrapy
soupsieve
Posts with mentions or reviews of soupsieve.
We have used some of these posts to build our list of alternatives
and similar projects.
We haven't tracked posts mentioning soupsieve yet.
Tracking mentions began in Dec 2020.
What are some alternatives?
When comparing parsel and soupsieve you can also consider the following projects:
CSS-Minifier - This CSS Minifier tries to reduce the length of code by renaming class names and id names.
parsel-cli - cli for evaluating css and xpath selectors
colly - Elegant Scraper and Crawler Framework for Golang