
9.3 Million Websites' Crawler Has Been Quietly Upgraded: A Single Request Now Retrieves the Entire Site
Scrapling v0.5 is a major, disruptive release: It combines Scrapy-style web scraping, Cloudflare bypass techniques, adaptive element tracking, a rewritten MCP server, and full site Markdown output into a single Python library. Its parsing performance is three orders of magnitude faster than BS4.
Related tags
Scrapling: A New Web Scraping Library with a Focus on Efficiency and Flexibility
Scrapling is a new web scraping library that aims to provide a more streamlined and efficient experience for developers. It achieves this by consolidating several common tasks into a single package, reducing the need for multiple dependencies and API calls.
The core of Scrapling consists of four main components:
- Fetcher: This component handles HTTP requests, including support for TLS fingerprinting and request header spoofing to bypass anti-scraping measures. It also supports HTTP/3 and provides persistent session management.
- StealthyFetcher: This component uses Playwright to automate browser interactions, allowing developers to navigate websites and interact with elements in a headless manner. It can bypass Cloudflare’s Turnstile and Interstitial challenges.
- Parser: This component provides a variety of parsing capabilities, including CSS, XPath, text search, and regular expression search. It also includes advanced features such as element similarity matching and adaptive element tracking.
- Spider: This component provides a high-level API for crawling websites, similar to Scrapy. It supports asynchronous parsing, request/response objects, concurrency control, and various other features.
Scrapling also offers several additional features:
- Support for multiple output formats, including JSON, JSONL, CSV, and XML.
- Automatic detection of delays to avoid overloading websites.
- Integration with AI platforms, allowing developers to easily extract data from web pages and feed it into machine learning models.
The performance of Scrapling has been tested against several other popular web scraping libraries, including Scrapy, Parsel, lxml, and PyQuery. The results show that Scrapling is significantly faster than these libraries in many cases.
Scrapling is easy to use and get started with. It can be installed using pip: pip install scrapling.
However, it’s important to note that Scrapling relies on external dependencies, such as Playwright, which need to be installed separately. Also, users are responsible for ensuring that their scraping activities comply with the terms of service and relevant laws of the websites they are targeting.
Scrapling: A Powerful Tool for Web Scraping
Scrapling is a powerful and versatile web scraping library that can help developers automate the process of extracting data from websites. Its streamlined architecture, combined with its advanced features and performance, make it an attractive alternative to existing libraries like Scrapy.
More News
Want to see more quality content?
Browse all news