Scrapy is the safest first pick for large scraping jobs, while Playwright is the best option when ecommerce pages hide prices behind JavaScript. That matters because global retail ecommerce sales were estimated at more than $4 trillion in 2024 [source: Statista].
TLDR: For ecommerce price tracking, Scrapy and Playwright for Python cover most serious needs. For smaller public data jobs, Beautiful Soup with Requests is still quick and clean. A retail analyst tracking 12,000 product pages across 8 stores may use Scrapy for 80% of pages, then send the JavaScript-heavy 20% to Playwright. That split can cut run time and cloud costs without losing key product data.
Contents
Our Editorial Picks
Python has no shortage of scraping tools. Some are simple. Some are heavy. Some feel great until a site adds lazy loading, rate limits, or a cookie wall. The five picks below were chosen for ecommerce monitoring, public records, market research, and content collection.
-
1. Scrapy
Best for: large ecommerce catalogs, public directories, job boards, and recurring crawls.
Scrapy is the workhorse. It handles crawling, retries, pipelines, exports, and request scheduling in one framework. It is a strong fit when a team needs to collect thousands or millions of pages on a schedule.
Its best feature is structure. Data teams can define spiders, clean items, and send results to JSON, CSV, databases, or queues. It also supports throttling, which helps reduce blocked requests.
The catch is that Scrapy starts to feel stiff on JavaScript-heavy sites. If product prices load after the page opens, Scrapy may need help from Playwright or an API endpoint.
-
2. Playwright for Python
Best for: modern ecommerce sites, interactive search pages, infinite scroll, and login-based pages.
Playwright runs real browsers. That makes it very useful when sites build pages with React, Vue, or other front-end tools. It can click buttons, wait for selectors, scroll, fill forms, and capture content after scripts run.
For ecommerce, this helps with product filters, stock labels, delivery dates, and discount badges. Those fields often appear late, not in the first HTML response.
The downside is speed. A browser session is heavier than a plain HTTP request. On one medium crawl, a Playwright page can take several seconds more than a Scrapy request. That adds up fast.
-
3. Beautiful Soup with Requests
Best for: small public data projects, static product pages, HTML tables, and quick research tasks.
Beautiful Soup is simple and friendly. It parses HTML and lets developers pull text, links, tables, and attributes with little setup. Paired with Requests, it is often enough for pages that do not rely on heavy scripts.
This combo is ideal for a small research task, such as collecting 500 city office contacts or checking prices from a few static pages. It is easy to read, easy to debug, and easy to hand off.
It drives some developers crazy that simple scripts can turn messy once pagination, retries, proxies, and exports are added. At that point, Scrapy usually becomes cleaner.
-
4. Selenium
Best for: legacy browser automation, QA-style scraping, and sites that need real user actions.
Selenium has been around for years. Many teams already know it because it is common in testing. It can run browsers, click page elements, handle forms, and work with pages that need user interaction.
For scraping, Selenium is useful when a workflow looks like a manual browser session. For example, a public records site may require a search form, a dropdown, and a results table export.
Still, Playwright often feels smoother for newer projects. Selenium can be slower to set up and less pleasant when waiting for page changes. It remains useful, but not always the first choice.
-
5. MechanicalSoup
Best for: simple forms, public search pages, and lightweight browser-like scraping.
MechanicalSoup sits between Requests and full browser automation. It can open pages, submit forms, and manage cookies without launching Chrome or Firefox. That makes it handy for older public websites with basic forms.
It works well when a county database, school directory, or public registry uses standard HTML forms. It is lighter than Selenium and easier than building every request by hand.
It is not the answer for modern ecommerce pages with script-rendered content. But for plain sites, it can be refreshingly practical.
How the Picks Compare
- For scale: Scrapy wins because it has crawling, queues, and pipelines built in.
- For JavaScript: Playwright is the top choice. Selenium is still fine for older stacks.
- For quick jobs: Beautiful Soup with Requests is usually the fastest to write.
- For forms: MechanicalSoup is light and useful when pages are old but not broken.
- For mixed ecommerce work: Scrapy plus Playwright is often the best pair.
A practical setup may use Scrapy as the main crawler. It can send only problem pages to Playwright. That keeps the crawl faster and reduces browser load. For many teams, this is the sweet spot.
Common Use Cases
- Price monitoring: tracking competitor prices, sale labels, shipping messages, and stock status.
- Catalog audits: checking missing images, broken product pages, duplicate titles, and category gaps.
- Public data collection: gathering permits, public meeting records, agency contacts, or directory listings.
- Market research: collecting product names, ratings, review counts, and brand mentions.
FAQ
Which Python scraper is best for ecommerce?
Scrapy is best for large ecommerce crawls. Playwright is better when pages need JavaScript to show prices, stock, or reviews.
Is Beautiful Soup still worth using?
Yes. It is great for small jobs and static pages. It is not ideal for big crawls with many retries, queues, and exports.
Should a team use Selenium or Playwright?
Playwright is often the better pick for new scraping projects. Selenium still works well when a team already uses it or needs older browser automation flows.
Can these tools scrape public data legally?
They can collect public information, but teams still need to respect site terms, robots.txt where relevant, rate limits, privacy rules, and local laws.
What is the best all-around setup?
For many teams, the best setup is Scrapy for crawling and Playwright for JavaScript-heavy pages. It is fast, flexible, and easier to maintain than using a browser for everything.