Практический spike.
Изолированное сравнение Scrapy, Trafilatura и Playwright.
Проверено: 2026-09-08T12:55:14Z
15 запусков: Trafilatura 6/6, Scrapy 3/3, Playwright 6/6.
Production не изменялся; auth fixture отсутствовал и не симулировался.
Fixtures
| Fixture | URL |
|---|---|
static | https://example.com/ |
js_article | https://makezine.com/article/maker-news/maker-faire/from-copper-foil-to-custom-pcb-building-a-diy-touch-piano-with-sridhar-rajagopal/ |
old_article | https://hackaday.com/2026/05/30/keychain-gamecube-controller-made-functional/ |
Результаты
| Кандидат | Успех | Среднее ms | Наблюдение |
|---|---|---|---|
| trafilatura | 6/6 | 508.8 | Primary article extractor candidate; stable output on static, JS-delivered HTML received after direct GET, and old article. |
| scrapy | 3/3 | 407.7 | Primary crawl/scheduling candidate; parser primitives work, but scheduler/depth/retry require a separate bounded job test. |
| playwright | 6/6 | 2131.0 | Fallback for JS-rendered pages and permitted sessions; slower than direct extraction in this sample and auth/challenge remains untested. |
Решение
- Trafilatura — основной extractor.
- Scrapy — основной планировщик и crawl-контур.
- Playwright — fallback для JavaScript и разрешённых сессий.
- Crawl4AI не устанавливался до отдельного security review.
Ограничения
- CPU/RAM процесса не измерялись; для Trafilatura записан Python tracemalloc peak.
- Scrapy проверен parser primitives, а полный scheduler/depth crawl отложен.
- Auth/session fixture не тестировался.