omni-scraper 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- omni_scraper-0.1.0.dist-info/METADATA +530 -0
- omni_scraper-0.1.0.dist-info/RECORD +70 -0
- omni_scraper-0.1.0.dist-info/WHEEL +4 -0
- omni_scraper-0.1.0.dist-info/entry_points.txt +2 -0
- omni_scraper-0.1.0.dist-info/licenses/LICENSE +21 -0
- omniscrape/__init__.py +340 -0
- omniscrape/_version.py +3 -0
- omniscrape/classifier/__init__.py +9 -0
- omniscrape/classifier/detector.py +191 -0
- omniscrape/classifier/strategies.py +70 -0
- omniscrape/cli/__init__.py +5 -0
- omniscrape/cli/main.py +442 -0
- omniscrape/client.py +402 -0
- omniscrape/content/__init__.py +11 -0
- omniscrape/content/chunking.py +72 -0
- omniscrape/content/extract.py +278 -0
- omniscrape/content/filters.py +64 -0
- omniscrape/content/markdown.py +257 -0
- omniscrape/content/metadata.py +158 -0
- omniscrape/content/tokens.py +29 -0
- omniscrape/crawler/__init__.py +15 -0
- omniscrape/crawler/engine.py +377 -0
- omniscrape/crawler/links.py +90 -0
- omniscrape/crawler/queue.py +125 -0
- omniscrape/crawler/robots.py +230 -0
- omniscrape/crawler/sitemap.py +106 -0
- omniscrape/crawler/spider.py +90 -0
- omniscrape/crawler/throttle.py +85 -0
- omniscrape/crawler/urls.py +71 -0
- omniscrape/curl.py +292 -0
- omniscrape/exceptions.py +95 -0
- omniscrape/extract/__init__.py +33 -0
- omniscrape/extract/entities.py +778 -0
- omniscrape/extract/listings.py +67 -0
- omniscrape/extract/product.py +417 -0
- omniscrape/fetchers/__init__.py +15 -0
- omniscrape/fetchers/actions.py +195 -0
- omniscrape/fetchers/base.py +64 -0
- omniscrape/fetchers/browser.py +240 -0
- omniscrape/fetchers/http.py +212 -0
- omniscrape/fetchers/httpx_fetcher.py +88 -0
- omniscrape/fetchers/pool.py +82 -0
- omniscrape/fetchers/registry.py +116 -0
- omniscrape/fetchers/stealth.py +173 -0
- omniscrape/mcp/__init__.py +7 -0
- omniscrape/mcp/server.py +180 -0
- omniscrape/models.py +216 -0
- omniscrape/normalizers/__init__.py +13 -0
- omniscrape/normalizers/currency.py +87 -0
- omniscrape/normalizers/dates.py +22 -0
- omniscrape/normalizers/markdown.py +16 -0
- omniscrape/normalizers/units.py +55 -0
- omniscrape/observability/logging.py +38 -0
- omniscrape/observability/metrics.py +47 -0
- omniscrape/parsers/__init__.py +17 -0
- omniscrape/parsers/adaptive.py +345 -0
- omniscrape/parsers/density.py +50 -0
- omniscrape/parsers/selector.py +762 -0
- omniscrape/parsers/semantic.py +124 -0
- omniscrape/parsers/structured.py +256 -0
- omniscrape/parsers/tables.py +79 -0
- omniscrape/py.typed +0 -0
- omniscrape/resilience/__init__.py +11 -0
- omniscrape/resilience/circuit_breaker.py +47 -0
- omniscrape/resilience/dead_letter.py +52 -0
- omniscrape/resilience/retry.py +54 -0
- omniscrape/storage/__init__.py +11 -0
- omniscrape/storage/base.py +28 -0
- omniscrape/storage/duckdb_backend.py +102 -0
- omniscrape/storage/jsonl_backend.py +51 -0
|
@@ -0,0 +1,530 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: omni-scraper
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Adaptive web scraping for Python: tiered HTTP/browser/stealth fetching, self-healing selectors, zero-config product and article extraction, LLM-ready Markdown, a polite resumable crawler and an MCP server.
|
|
5
|
+
Project-URL: Homepage, https://github.com/loganathan-ai-dev/Omni-Scrape
|
|
6
|
+
Project-URL: Documentation, https://github.com/loganathan-ai-dev/Omni-Scrape/wiki
|
|
7
|
+
Project-URL: Repository, https://github.com/loganathan-ai-dev/Omni-Scrape
|
|
8
|
+
Project-URL: Issues, https://github.com/loganathan-ai-dev/Omni-Scrape/issues
|
|
9
|
+
Project-URL: Changelog, https://github.com/loganathan-ai-dev/Omni-Scrape/blob/main/CHANGELOG.md
|
|
10
|
+
Author-email: Loganathan M <Loganathanmanoharan2005@gmail.com>
|
|
11
|
+
Maintainer-email: Loganathan M <Loganathanmanoharan2005@gmail.com>
|
|
12
|
+
License-Expression: MIT
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
Keywords: adaptive-selectors,asyncio,crawler,curl-cffi,llm,markdown,mcp,playwright,scraper,web-scraping
|
|
15
|
+
Classifier: Development Status :: 4 - Beta
|
|
16
|
+
Classifier: Environment :: Console
|
|
17
|
+
Classifier: Framework :: AsyncIO
|
|
18
|
+
Classifier: Intended Audience :: Developers
|
|
19
|
+
Classifier: Operating System :: OS Independent
|
|
20
|
+
Classifier: Programming Language :: Python :: 3
|
|
21
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
25
|
+
Classifier: Topic :: Internet :: WWW/HTTP
|
|
26
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
27
|
+
Classifier: Topic :: Text Processing :: Markup :: HTML
|
|
28
|
+
Classifier: Typing :: Typed
|
|
29
|
+
Requires-Python: >=3.11
|
|
30
|
+
Requires-Dist: click>=8.1.0
|
|
31
|
+
Requires-Dist: cssselect>=1.2.0
|
|
32
|
+
Requires-Dist: curl-cffi>=0.15.0
|
|
33
|
+
Requires-Dist: lxml>=5.0.0
|
|
34
|
+
Requires-Dist: pydantic>=2.5.0
|
|
35
|
+
Requires-Dist: python-dateutil>=2.8.2
|
|
36
|
+
Requires-Dist: rich>=13.0.0
|
|
37
|
+
Provides-Extra: all
|
|
38
|
+
Requires-Dist: camoufox>=0.4.0; extra == 'all'
|
|
39
|
+
Requires-Dist: duckdb>=1.1.0; extra == 'all'
|
|
40
|
+
Requires-Dist: fastmcp>=2.3.0; extra == 'all'
|
|
41
|
+
Requires-Dist: httpx[http2]>=0.27.0; extra == 'all'
|
|
42
|
+
Requires-Dist: ipython>=8.0.0; extra == 'all'
|
|
43
|
+
Requires-Dist: playwright>=1.48.0; extra == 'all'
|
|
44
|
+
Requires-Dist: selectolax>=0.3.20; extra == 'all'
|
|
45
|
+
Requires-Dist: tiktoken>=0.7.0; extra == 'all'
|
|
46
|
+
Provides-Extra: bench
|
|
47
|
+
Requires-Dist: aiohttp>=3.9.0; extra == 'bench'
|
|
48
|
+
Requires-Dist: psutil>=5.9.0; extra == 'bench'
|
|
49
|
+
Provides-Extra: browser
|
|
50
|
+
Requires-Dist: playwright>=1.48.0; extra == 'browser'
|
|
51
|
+
Provides-Extra: dev
|
|
52
|
+
Requires-Dist: aiohttp>=3.9.0; extra == 'dev'
|
|
53
|
+
Requires-Dist: build>=1.2.0; extra == 'dev'
|
|
54
|
+
Requires-Dist: mypy>=1.10.0; extra == 'dev'
|
|
55
|
+
Requires-Dist: pytest-asyncio>=0.24.0; extra == 'dev'
|
|
56
|
+
Requires-Dist: pytest>=8.0.0; extra == 'dev'
|
|
57
|
+
Requires-Dist: ruff>=0.6.0; extra == 'dev'
|
|
58
|
+
Requires-Dist: twine>=5.0.0; extra == 'dev'
|
|
59
|
+
Provides-Extra: fast
|
|
60
|
+
Requires-Dist: selectolax>=0.3.20; extra == 'fast'
|
|
61
|
+
Provides-Extra: httpx
|
|
62
|
+
Requires-Dist: httpx[http2]>=0.27.0; extra == 'httpx'
|
|
63
|
+
Provides-Extra: markdown
|
|
64
|
+
Requires-Dist: tiktoken>=0.7.0; extra == 'markdown'
|
|
65
|
+
Provides-Extra: mcp
|
|
66
|
+
Requires-Dist: fastmcp>=2.3.0; extra == 'mcp'
|
|
67
|
+
Provides-Extra: shell
|
|
68
|
+
Requires-Dist: ipython>=8.0.0; extra == 'shell'
|
|
69
|
+
Provides-Extra: stealth
|
|
70
|
+
Requires-Dist: camoufox>=0.4.0; extra == 'stealth'
|
|
71
|
+
Provides-Extra: storage
|
|
72
|
+
Requires-Dist: duckdb>=1.1.0; extra == 'storage'
|
|
73
|
+
Description-Content-Type: text/markdown
|
|
74
|
+
|
|
75
|
+
<div align="center">
|
|
76
|
+
|
|
77
|
+
<img src="https://raw.githubusercontent.com/loganathan-ai-dev/Omni-Scrape/main/docs/assets/logo-mark.png" alt="OmniScrape logo" width="180">
|
|
78
|
+
|
|
79
|
+
# OmniScrape
|
|
80
|
+
|
|
81
|
+
**Adaptive web scraping for Python.** Tiered HTTP / browser / stealth fetching, self-healing selectors, zero-config product and article extraction, LLM-ready Markdown, a polite resumable crawler, a CLI and an MCP server, behind one small API.
|
|
82
|
+
|
|
83
|
+
[](https://pypi.org/project/omni-scraper/)
|
|
84
|
+
[](https://pypi.org/project/omni-scraper/)
|
|
85
|
+
[](https://github.com/loganathan-ai-dev/Omni-Scrape/actions/workflows/ci.yml)
|
|
86
|
+
[](https://github.com/loganathan-ai-dev/Omni-Scrape/blob/main/LICENSE)
|
|
87
|
+
[](https://github.com/astral-sh/ruff)
|
|
88
|
+
[](https://peps.python.org/pep-0561/)
|
|
89
|
+
|
|
90
|
+
[Install](#install) · [Quick start](#quick-start) · [Features](#features) · [Benchmarks](#benchmarks) · [Compare](#how-it-compares) · [Docs](#documentation) · [Contributing](#contributing)
|
|
91
|
+
|
|
92
|
+
</div>
|
|
93
|
+
|
|
94
|
+
```python
|
|
95
|
+
import omniscrape
|
|
96
|
+
|
|
97
|
+
page = omniscrape.scrape_sync("https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html")
|
|
98
|
+
page.product.title, page.product.price, page.product.currency # ('A Light in the Attic', 51.77, 'GBP')
|
|
99
|
+
print(page.markdown) # main content only, as clean Markdown
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
> [!NOTE]
|
|
103
|
+
> The PyPI package is named **`omni-scraper`** (the name `omniscrape` belongs to an unrelated project). You still `import omniscrape` and run the `omniscrape` command.
|
|
104
|
+
|
|
105
|
+
## Install
|
|
106
|
+
|
|
107
|
+
Requires Python 3.11+.
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
pip install omni-scraper
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
| Extra | Adds | Install |
|
|
114
|
+
|---|---|---|
|
|
115
|
+
| `browser` | Playwright Chromium rendering, actions, screenshots, PDF | `pip install "omni-scraper[browser]"` then `playwright install chromium` |
|
|
116
|
+
| `stealth` | Camoufox for opt-in stealth (`tier=3`) | `pip install "omni-scraper[stealth]"` |
|
|
117
|
+
| `fast` | Opt-in `selectolax` Lexbor CSS backend | `pip install "omni-scraper[fast]"` |
|
|
118
|
+
| `httpx` | Alternative HTTP/2 client (`tier="httpx"`) | `pip install "omni-scraper[httpx]"` |
|
|
119
|
+
| `storage` | DuckDB output | `pip install "omni-scraper[storage]"` |
|
|
120
|
+
| `markdown` | Exact token counts via `tiktoken` | `pip install "omni-scraper[markdown]"` |
|
|
121
|
+
| `mcp` | MCP server for AI agents | `pip install "omni-scraper[mcp]"` |
|
|
122
|
+
| `shell` | IPython for `omniscrape shell` | `pip install "omni-scraper[shell]"` |
|
|
123
|
+
| `all` | All of the above | `pip install "omni-scraper[all]"` |
|
|
124
|
+
|
|
125
|
+
## Features
|
|
126
|
+
|
|
127
|
+
| | |
|
|
128
|
+
|---|---|
|
|
129
|
+
| **3-tier fetching** | `curl_cffi` HTTP with a real browser's TLS fingerprint *and* matching headers (`tier=1`; Chrome, Edge, Safari, Firefox, Android, iOS profiles, rotation, HTTP/3), automatic escalation of empty JS shells to Playwright (`tier=2`), opt-in stealth browser (`tier=3`). |
|
|
130
|
+
| **Self-healing selectors** | Remembers 12 structural, context and content signals per element and relocates it after class renames, tag swaps, wrappers and attribute churn, rejecting ambiguous matches. |
|
|
131
|
+
| **Zero-config extraction for every page type** | Products, articles, listing cards, recipes, events, job postings, reviews and ratings, FAQs, organisation contacts, breadcrumbs, next-page links and data tables, from JSON-LD, Microdata, RDFa, OpenGraph and DOM fallbacks. No selectors needed. |
|
|
132
|
+
| **Page-type detection** | Every `scrape()` result says what the page is: product, article, recipe, event, job, listing, faq, organization or other. |
|
|
133
|
+
| **Declarative schemas** | `Selector.extract({...})` with price, date, unit and number normalizers. |
|
|
134
|
+
| **LLM-ready Markdown** | Main-content `fit_markdown`, BM25 query filtering, numbered citations, token-bounded `chunk_markdown`. |
|
|
135
|
+
| **Polite resumable crawler** | `robots.txt` on by default, `Crawl-delay`, AutoThrottle, `Retry-After` pauses, sitemap seeding, SQLite pause/resume, streaming, multi-session spiders (HTTP and browser pages in one crawl). |
|
|
136
|
+
| **CLI** | `get`, `crawl`, `map`, `extract`, `curl` (replay "Copy as cURL"), `shell`, `mcp`; output format from the file extension. |
|
|
137
|
+
| **MCP server** | FastMCP over stdio or streamable HTTP, eleven tools including page entities, schema extraction, listings, links, bounded crawls and screenshots. |
|
|
138
|
+
| **Agent skill and plugin** | Ready-made skill for Claude Code and other agents, plus a Claude Code plugin. |
|
|
139
|
+
|
|
140
|
+
```mermaid
|
|
141
|
+
flowchart LR
|
|
142
|
+
U[URL] --> F1[Tier 1<br/>HTTP + TLS fingerprint]
|
|
143
|
+
F1 -->|empty JS shell| F2[Tier 2<br/>Playwright browser]
|
|
144
|
+
F1 -->|blocked and allow_stealth| F3[Tier 3<br/>Stealth browser]
|
|
145
|
+
F2 --> R[FetchResult]
|
|
146
|
+
F1 --> R
|
|
147
|
+
F3 --> R
|
|
148
|
+
R --> P[Selector<br/>CSS / XPath / adaptive]
|
|
149
|
+
R --> X[Extractors<br/>product / article / listings<br/>recipe / event / job / FAQ / contacts]
|
|
150
|
+
R --> M[fit_markdown<br/>chunk_markdown]
|
|
151
|
+
P --> S[(JSONL / DuckDB)]
|
|
152
|
+
X --> S
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
## Quick start
|
|
156
|
+
|
|
157
|
+
<details open>
|
|
158
|
+
<summary><b>Single page and batch scraping</b></summary>
|
|
159
|
+
|
|
160
|
+
```python
|
|
161
|
+
import asyncio
|
|
162
|
+
import omniscrape
|
|
163
|
+
|
|
164
|
+
async def main():
|
|
165
|
+
page = await omniscrape.scrape("https://quotes.toscrape.com/")
|
|
166
|
+
print(page.title) # page title
|
|
167
|
+
print(page.markdown[:300]) # main-content Markdown, boilerplate removed
|
|
168
|
+
print(page.links[:5]) # absolute links
|
|
169
|
+
print(page.metadata) # title, author, dates, site name, description, language
|
|
170
|
+
|
|
171
|
+
pages = await omniscrape.scrape_many(
|
|
172
|
+
["https://quotes.toscrape.com/page/1/", "https://quotes.toscrape.com/page/2/"],
|
|
173
|
+
concurrency=4,
|
|
174
|
+
per_domain_concurrency=2,
|
|
175
|
+
)
|
|
176
|
+
|
|
177
|
+
asyncio.run(main())
|
|
178
|
+
```
|
|
179
|
+
</details>
|
|
180
|
+
|
|
181
|
+
<details open>
|
|
182
|
+
<summary><b>Any kind of page: recipes, events, jobs, reviews, FAQ, contacts, pagination</b></summary>
|
|
183
|
+
|
|
184
|
+
```python
|
|
185
|
+
import omniscrape
|
|
186
|
+
|
|
187
|
+
page = omniscrape.scrape_sync("https://example.com/some-page")
|
|
188
|
+
page.content_type # 'recipe' | 'event' | 'job' | 'product' | 'article' | 'listing' | ...
|
|
189
|
+
ents = page.entities
|
|
190
|
+
ents.recipe.ingredients, ents.recipe.total_time_minutes
|
|
191
|
+
[(job.title, job.company, job.salary_min, job.remote) for job in ents.jobs]
|
|
192
|
+
[(e.title, e.start_date, e.location_name) for e in ents.events]
|
|
193
|
+
ents.rating, ents.rating_count, ents.reviews[:3]
|
|
194
|
+
[(q.question, q.answer) for q in ents.faq]
|
|
195
|
+
ents.organization.emails, ents.organization.phones, ents.organization.social_profiles
|
|
196
|
+
[c.name for c in ents.breadcrumbs], ents.next_page, ents.tables
|
|
197
|
+
|
|
198
|
+
# The same extractors work on HTML you already have:
|
|
199
|
+
from omniscrape import extract_entities, detect_content_type, find_next_page
|
|
200
|
+
extract_entities(html, url).jobs
|
|
201
|
+
```
|
|
202
|
+
</details>
|
|
203
|
+
|
|
204
|
+
<details>
|
|
205
|
+
<summary><b>Retries, proxies, caching, circuit breaker</b></summary>
|
|
206
|
+
|
|
207
|
+
```python
|
|
208
|
+
from omniscrape import OmniClient, ProxyPoolManager
|
|
209
|
+
from omniscrape.resilience import CircuitBreaker, DeadLetterQueue
|
|
210
|
+
|
|
211
|
+
async with OmniClient(
|
|
212
|
+
retries=2, # transport errors, 429 (Retry-After) and 5xx
|
|
213
|
+
timeout=30,
|
|
214
|
+
cache_responses=True, # ETag / Last-Modified conditional 304 caching
|
|
215
|
+
headers={"Accept-Language": "en-GB"},
|
|
216
|
+
proxy_pool=ProxyPoolManager(["http://user:pass@p1:8080", "http://p2:8080"], strategy="round_robin"),
|
|
217
|
+
circuit_breaker=CircuitBreaker(failure_threshold=5, recovery_timeout=30),
|
|
218
|
+
dead_letter=DeadLetterQueue("failed.db"),
|
|
219
|
+
) as client:
|
|
220
|
+
res = await client.fetch("https://example.com/a")
|
|
221
|
+
pages = await client.scrape_many(["https://example.com/b", "https://example.com/c"], concurrency=4)
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
Proxy strategies: `round_robin`, `random`, `sticky` (one proxy per domain). Register your own fetcher with `register_fetcher("my-api", MyApiFetcher)`.
|
|
225
|
+
|
|
226
|
+
Browser identity for the HTTP tier: every profile sends its own TLS fingerprint *and* headers, so they never contradict each other.
|
|
227
|
+
|
|
228
|
+
```python
|
|
229
|
+
await omniscrape.fetch(url, impersonate="safari") # one request as Safari
|
|
230
|
+
await omniscrape.fetch(url, http_version="3") # HTTP/3
|
|
231
|
+
OmniClient(fetcher_options={1: {"impersonate": ["chrome", "safari", "firefox"]}}) # rotate, one per host
|
|
232
|
+
OmniClient(fetcher_options={1: {"impersonate": ["chrome", "edge"], "rotate": "request"}})
|
|
233
|
+
|
|
234
|
+
# Replay a request copied from the browser's dev tools ("Copy as cURL"):
|
|
235
|
+
res = await omniscrape.fetch_curl("curl 'https://api.example.com/items?page=2' -H 'accept: application/json'")
|
|
236
|
+
```
|
|
237
|
+
</details>
|
|
238
|
+
|
|
239
|
+
<details>
|
|
240
|
+
<summary><b>Browser rendering and page actions</b></summary>
|
|
241
|
+
|
|
242
|
+
```python
|
|
243
|
+
res = await omniscrape.fetch(
|
|
244
|
+
"https://example.com/products",
|
|
245
|
+
tier=2,
|
|
246
|
+
wait_for=".product-card",
|
|
247
|
+
actions=[
|
|
248
|
+
{"type": "click", "selector": "button.load-more"},
|
|
249
|
+
{"type": "infinite_scroll", "max_scrolls": 5},
|
|
250
|
+
{"type": "type", "selector": "input[name=q]", "text": "lamp"},
|
|
251
|
+
{"type": "press", "key": "Enter"},
|
|
252
|
+
{"type": "wait", "milliseconds": 500},
|
|
253
|
+
{"type": "evaluate", "script": "() => document.querySelectorAll('.product-card').length"},
|
|
254
|
+
],
|
|
255
|
+
screenshot=True,
|
|
256
|
+
capture_network=True,
|
|
257
|
+
)
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
Actions: `click`, `type`/`write`/`fill`, `press`, `scroll` (`direction`, `amount`, or `to: "top"|"bottom"`), `infinite_scroll`, `wait` (`milliseconds`), `evaluate`, `screenshot`, `scrape`. Add `"optional": True` to continue if an action fails.
|
|
261
|
+
</details>
|
|
262
|
+
|
|
263
|
+
<details>
|
|
264
|
+
<summary><b>Selectors, schemas and self-healing</b></summary>
|
|
265
|
+
|
|
266
|
+
```python
|
|
267
|
+
from omniscrape import Selector
|
|
268
|
+
|
|
269
|
+
page = Selector(html, url="https://shop.example/list")
|
|
270
|
+
page.css("div.card h3::text").getall()
|
|
271
|
+
page.css("div.card a::attr(href)").get()
|
|
272
|
+
page.css("span.price").re(r"\$([\d.]+)")
|
|
273
|
+
page.xpath("//div[@data-sku='B2']/h3/text()").get()
|
|
274
|
+
|
|
275
|
+
item = page.extract({
|
|
276
|
+
"title": "div.pdp h1::text",
|
|
277
|
+
"price": {"selector": "div.pdp .price::text", "type": "price"},
|
|
278
|
+
"tags": {"selector": "ul.tags li::text", "all": True},
|
|
279
|
+
})
|
|
280
|
+
|
|
281
|
+
# Self-healing: save a fingerprint once...
|
|
282
|
+
page = Selector(html_v1, url="https://shop.example/item/1", adaptive=True, storage="fingerprints.db")
|
|
283
|
+
page.css(".price-current", identifier="price", auto_save=True)
|
|
284
|
+
|
|
285
|
+
# ...and after a redesign the same call relocates the element.
|
|
286
|
+
page = Selector(html_v2, url="https://shop.example/item/1", adaptive=True, storage="fingerprints.db")
|
|
287
|
+
page.css(".price-current", identifier="price", adaptive=True)[0].text
|
|
288
|
+
```
|
|
289
|
+
</details>
|
|
290
|
+
|
|
291
|
+
<details>
|
|
292
|
+
<summary><b>Zero-config products, articles, listings and Markdown</b></summary>
|
|
293
|
+
|
|
294
|
+
```python
|
|
295
|
+
from omniscrape import extract_product, extract_listings, extract_metadata, fit_markdown, chunk_markdown
|
|
296
|
+
|
|
297
|
+
product = extract_product(html, url) # JSON-LD, Microdata, RDFa, OG, Shopify JSON, DOM
|
|
298
|
+
listings = extract_listings(category_html, url) # repeated cards on category / search pages
|
|
299
|
+
meta = extract_metadata(html, url) # title, author, dates, tags
|
|
300
|
+
md = fit_markdown(html, url=url, query="pricing", links=True, citations=True, max_tokens=2000)
|
|
301
|
+
chunks = chunk_markdown(md, max_tokens=512)
|
|
302
|
+
```
|
|
303
|
+
</details>
|
|
304
|
+
|
|
305
|
+
<details>
|
|
306
|
+
<summary><b>Crawling with pause / resume</b></summary>
|
|
307
|
+
|
|
308
|
+
```python
|
|
309
|
+
import asyncio
|
|
310
|
+
from omniscrape import CrawlEngine, JSONLStorage, LinkExtractor, Request, Spider
|
|
311
|
+
|
|
312
|
+
links = LinkExtractor(same_domain=True)
|
|
313
|
+
|
|
314
|
+
class Books(Spider):
|
|
315
|
+
name = "books"
|
|
316
|
+
start_urls = ["https://books.toscrape.com/"]
|
|
317
|
+
concurrency = 8
|
|
318
|
+
|
|
319
|
+
async def parse(self, response, selector):
|
|
320
|
+
if selector.css("div.product_main"):
|
|
321
|
+
yield {"title": selector.css("h1::text").get(), "price": selector.css("p.price_color::text").get()}
|
|
322
|
+
for url in links.extract(selector, response.url):
|
|
323
|
+
yield Request(url, meta={"from": response.url}) # arrives as response.meta in the callback
|
|
324
|
+
|
|
325
|
+
stats = asyncio.run(CrawlEngine(
|
|
326
|
+
Books(), storage=JSONLStorage("books.jsonl"), max_pages=200, queue_path="books-queue.db",
|
|
327
|
+
).run())
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
Multi-session spiders mix fetch configurations in one crawl, e.g. fast HTTP for category pages and a real browser for JavaScript product pages:
|
|
331
|
+
|
|
332
|
+
```python
|
|
333
|
+
class Shop(Spider):
|
|
334
|
+
name = "shop"
|
|
335
|
+
start_urls = ["https://shop.example/catalog"]
|
|
336
|
+
sessions = {
|
|
337
|
+
"http": {"tier": 1, "impersonate": "chrome"},
|
|
338
|
+
"browser": {"tier": 2, "wait_for": ".price"},
|
|
339
|
+
}
|
|
340
|
+
default_session = "http"
|
|
341
|
+
|
|
342
|
+
async def parse(self, response, selector):
|
|
343
|
+
for href in selector.css("a.product::attr(href)").getall():
|
|
344
|
+
yield Request(href, session="browser", callback=self.parse_product)
|
|
345
|
+
if (nxt := omniscrape.find_next_page(response.html, response.url)):
|
|
346
|
+
yield Request(nxt)
|
|
347
|
+
|
|
348
|
+
async def parse_product(self, response, selector):
|
|
349
|
+
yield omniscrape.build_scrape_result(response).product
|
|
350
|
+
```
|
|
351
|
+
</details>
|
|
352
|
+
|
|
353
|
+
### Command line
|
|
354
|
+
|
|
355
|
+
```bash
|
|
356
|
+
omniscrape get https://books.toscrape.com/ # summary table
|
|
357
|
+
omniscrape get URL -f json > page.json # data on stdout, logs on stderr
|
|
358
|
+
omniscrape get URL -o page.md # format from the extension: .json .md .html .txt
|
|
359
|
+
omniscrape get URL --css "h1::text" -H "Accept-Language: en" --proxy http://p:8080
|
|
360
|
+
omniscrape get URL --impersonate safari --http-version 3
|
|
361
|
+
omniscrape curl "curl 'https://api.example.com/x' -H 'accept: application/json'" -f json
|
|
362
|
+
omniscrape crawl https://books.toscrape.com/ --max-pages 100 -o books.jsonl --resume
|
|
363
|
+
omniscrape map https://example.com --search pricing
|
|
364
|
+
omniscrape extract URL --schema schema.json
|
|
365
|
+
omniscrape shell URL # REPL with page, response, curl(), uncurl()
|
|
366
|
+
omniscrape mcp # stdio MCP server
|
|
367
|
+
omniscrape mcp --transport http --port 8000 # streamable HTTP at /mcp
|
|
368
|
+
```
|
|
369
|
+
|
|
370
|
+
## Benchmarks
|
|
371
|
+
|
|
372
|
+
Reproducible, offline-first and honest about scope. Each tool runs in its own isolated virtual environment against the same corpus and a local test server. Ground truth comes from each page's own markup, never from another tool's output.
|
|
373
|
+
|
|
374
|
+
**Run:** `20261127-183312-release-0.1.0`, 2026-11-27, Windows 11, Intel 12-thread CPU, 11.7 GB RAM, Python 3.12 environments, 5 repeats. OmniScrape 0.1.0 (this release) against Scrapling 0.5.1 and Trafilatura 2.4.0. Raw numbers are committed in [`benchmarks/published/2026-11-27-release/`](https://github.com/loganathan-ai-dev/Omni-Scrape/tree/main/benchmarks/published/2026-11-27-release).
|
|
375
|
+
|
|
376
|
+
### At a glance
|
|
377
|
+
|
|
378
|
+
| Suite | Metric | OmniScrape | Scrapling 0.5.1 | Trafilatura 2.4.0 |
|
|
379
|
+
|---|---|---:|---:|---:|
|
|
380
|
+
| Self-healing selectors | Recovered, 1,377 broken cases | **100.0%** | 85.3% | n/a |
|
|
381
|
+
| Self-healing selectors | Wrong element picked | **0** | 202 | n/a |
|
|
382
|
+
| Self-healing selectors | Time per page | **31.0 ms** | 82.1 ms | n/a |
|
|
383
|
+
| Parsing, 143 pages × 5 | Pages per second | **474.6** | 338.1 | n/a |
|
|
384
|
+
| Crawl, 300 pages, concurrency 8 | Pages per second | **178.5** | 167.6 | n/a |
|
|
385
|
+
| JavaScript rendering, 60 pages | Pages per second | **10.2** | 5.5 | n/a |
|
|
386
|
+
| Live crawl, quotes.toscrape.com | Pages per second | 3.84 | 3.82 | n/a |
|
|
387
|
+
| Live crawl, books.toscrape.com | Pages per second | 5.18 | **5.29** | n/a |
|
|
388
|
+
| Main-content Markdown, 66 pages | F1 | **0.9903** | n/a | 0.9807 |
|
|
389
|
+
| Article extraction, 126 pages | F1 | **0.9418** | n/a | 0.9003 |
|
|
390
|
+
| Product extraction | F1 | **1.000** | n/a | not supported |
|
|
391
|
+
| Recipes, events, jobs, reviews, FAQ, contacts, page type | Zero-config | **yes** | not offered | not offered |
|
|
392
|
+
|
|
393
|
+
OmniScrape does not win every row. Scrapling was slightly faster on the books.toscrape.com live crawl and the quotes crawl is a tie; both live crawls are network-bound and only 20 and 40 pages long.
|
|
394
|
+
|
|
395
|
+
<details>
|
|
396
|
+
<summary><b>Self-healing selectors: recovery by mutation type</b></summary>
|
|
397
|
+
|
|
398
|
+
1,377 deliberately broken selectors across 60 pages (dev set 592, holdout 785).
|
|
399
|
+
|
|
400
|
+
| Tool | Recovered | Wrong element | Missed | ms per page variant | Peak RSS |
|
|
401
|
+
|---|---:|---:|---:|---:|---:|
|
|
402
|
+
| **OmniScrape** | **100.0%** (1,377) | **0** | 0 | **31.0** | 50.5 MB |
|
|
403
|
+
| Scrapling 0.5.1 | 85.3% (1,175) | 202 | 0 | 82.1 | 50.5 MB |
|
|
404
|
+
|
|
405
|
+
| Mutation | OmniScrape | Scrapling |
|
|
406
|
+
|---|---:|---:|
|
|
407
|
+
| All classes renamed | **100%** | 100% |
|
|
408
|
+
| Content changed | **100%** | 100% |
|
|
409
|
+
| IDs and `data-*` churned | **100%** | 96.5% |
|
|
410
|
+
| Look-alike siblings inserted | **100%** | 92.9% |
|
|
411
|
+
| Element wrapped | **100%** | 92.2% |
|
|
412
|
+
| Tag swapped | **100%** | 60.1% |
|
|
413
|
+
| Combined redesign | **100%** | 57.1% |
|
|
414
|
+
|
|
415
|
+
> [!NOTE]
|
|
416
|
+
> The mutations are generated by this repository's own script (`benchmarks/corpus/adaptive_cases.py`), so this is a self-benchmark: it shows how each tool copes with these classes of change, not an independent verdict. Run it yourself.
|
|
417
|
+
</details>
|
|
418
|
+
|
|
419
|
+
<details>
|
|
420
|
+
<summary><b>Parsing, crawling, rendering and startup</b></summary>
|
|
421
|
+
|
|
422
|
+
| Suite | Metric | OmniScrape | Scrapling 0.5.1 |
|
|
423
|
+
|---|---|---:|---:|
|
|
424
|
+
| Startup | Cold `import` time | **0.004 s** | 0.204 s |
|
|
425
|
+
| Startup | RSS after import | **26.6 MB** | 31.5 MB |
|
|
426
|
+
| Parse, 143 docs × 5 | Docs/s · MB/s · peak RSS | **474.6** · 13.0 · 52.2 MB | 338.1 · 9.3 · **46.4 MB** |
|
|
427
|
+
| Crawl, 300 pages, concurrency 8, robots on, 10 flaky 500s | Pages/s · peak RSS | **178.5** · **45.4 MB** | 167.6 · 59.5 MB |
|
|
428
|
+
| Live crawl, quotes (20 pages, concurrency 2) | Pages/s · peak RSS | 3.84 · **48.5 MB** | 3.82 · 62.4 MB |
|
|
429
|
+
| Live crawl, books (40 pages, concurrency 2) | Pages/s · peak RSS | 5.18 · **48.5 MB** | **5.29** · 62.4 MB |
|
|
430
|
+
| JS render, 60 pages, concurrency 4, shared context | Pages/s · peak RSS | **10.21** · 877 MB | 5.46 · 1,112 MB |
|
|
431
|
+
| JS render, isolated contexts | Pages/s · peak RSS | 10.06 · **594 MB** | n/a |
|
|
432
|
+
|
|
433
|
+
Crawl correctness for both tools: 321/321 allowed pages fetched, 0 `robots.txt` violations, 0 duplicate requests, 10/10 flaky HTTP 500s recovered. All 60 rendered pages succeeded for every tool. Crawl throughput over 3 runs: OmniScrape 178.5 pages/s (stdev 10.0), Scrapling 167.6 (stdev 5.1).
|
|
434
|
+
</details>
|
|
435
|
+
|
|
436
|
+
<details>
|
|
437
|
+
<summary><b>Markdown and zero-config extraction vs Trafilatura</b></summary>
|
|
438
|
+
|
|
439
|
+
| Suite | Metric | OmniScrape | Trafilatura 2.4.0 |
|
|
440
|
+
|---|---|---:|---:|
|
|
441
|
+
| Markdown, 66 pages | F1, overall | **0.9903** | 0.9807 |
|
|
442
|
+
| Markdown | F1, holdout | **0.9854** | 0.9811 |
|
|
443
|
+
| Markdown | F1, handwritten pages | **0.9838** | 0.9602 |
|
|
444
|
+
| Markdown | Boilerplate leakage, overall | **0.31%** | 0.96% |
|
|
445
|
+
| Markdown | ms per doc · peak RSS | **13.8 ms** · **51.7 MB** | 29.1 ms · 57.4 MB |
|
|
446
|
+
| Extract, 126 pages | Product F1 (all / holdout) | **1.000 / 1.000** | not supported |
|
|
447
|
+
| Extract | Article F1 (all / holdout) | **0.9418 / 0.8966** | 0.9003 / 0.8479 |
|
|
448
|
+
| Extract | ms per doc · peak RSS | **43.3 ms** · **57.6 MB** | 59.8 ms · 101.0 MB |
|
|
449
|
+
|
|
450
|
+
The extract timing includes everything `scrape()` now does per page: page-type detection and the recipe, event, job, review, FAQ, contact, breadcrumb, pagination and table extractors.
|
|
451
|
+
</details>
|
|
452
|
+
|
|
453
|
+
<details>
|
|
454
|
+
<summary><b>Methodology and reproducing</b></summary>
|
|
455
|
+
|
|
456
|
+
- One subprocess per (tool, suite); competitor tools live in separate environments built by `python -m benchmarks envs`.
|
|
457
|
+
- Crawl suite: a local server with 300 pages, 5-25 ms latency, a `robots.txt`, duplicate links and flaky pages. Coverage, duplicates and robots violations are counted **server-side**, not by the tool.
|
|
458
|
+
- The render suite reports OmniScrape's shared and isolated browser contexts separately.
|
|
459
|
+
- The run was made at commit `ef17721` with this release's changes applied but not yet committed (`git_dirty`).
|
|
460
|
+
- Browser and network suites vary between runs: the earlier run of the same day (also committed, in `benchmarks/published/2026-11-27/`) measured isolated rendering at 14.2 pages/s and the books live crawl at 4.46 (OmniScrape) vs 5.11 (Scrapling).
|
|
461
|
+
- Tools in the harness that are **not** in this published run: Crawl4AI, Scrapy, Crawlee, lxml, BeautifulSoup, selectolax, parsel, markdownify, html2text. They need `python -m benchmarks envs`; no numbers for them are claimed here.
|
|
462
|
+
|
|
463
|
+
```bash
|
|
464
|
+
git clone https://github.com/loganathan-ai-dev/Omni-Scrape.git && cd Omni-Scrape
|
|
465
|
+
pip install -e ".[dev,bench]"
|
|
466
|
+
python -m benchmarks envs # isolated environments per tool (needs uv)
|
|
467
|
+
python -m benchmarks run # all 7 suites, writes benchmarks/results/<run>/report.html
|
|
468
|
+
python -m benchmarks compare OLD_DIR NEW_DIR
|
|
469
|
+
```
|
|
470
|
+
|
|
471
|
+
See [`benchmarks/README.md`](https://github.com/loganathan-ai-dev/Omni-Scrape/blob/main/benchmarks/README.md).
|
|
472
|
+
</details>
|
|
473
|
+
|
|
474
|
+
## How it compares
|
|
475
|
+
|
|
476
|
+
Cells come from each project's own README or documentation, read on 2026-11-27. `—` means the page does not state it, which is not the same as "no". Corrections welcome via an issue.
|
|
477
|
+
|
|
478
|
+
| | **OmniScrape** | [Scrapling](https://github.com/D4Vinci/Scrapling) | [Crawl4AI](https://github.com/unclecode/crawl4ai) | [Scrapy](https://github.com/scrapy/scrapy) | [Crawlee (Python)](https://github.com/apify/crawlee-python) | [Trafilatura](https://github.com/adbar/trafilatura) |
|
|
479
|
+
|---|:---:|:---:|:---:|:---:|:---:|:---:|
|
|
480
|
+
| Async API | ✅ | ✅ | ✅ | engine only | ✅ | — |
|
|
481
|
+
| HTTP with TLS/browser impersonation | ✅ 6 browser families, rotation, HTTP/3 | ✅ incl. HTTP/3 | — | — | — | — |
|
|
482
|
+
| Real-browser rendering | ✅ | ✅ | ✅ | — | ✅ | — |
|
|
483
|
+
| Stealth / anti-bot fetcher | ◐ no challenge solving | ✅ claims Turnstile bypass | ✅ stealth mode | — | — | — |
|
|
484
|
+
| Adaptive / self-healing selectors | ✅ | ✅ | — | — | — | — |
|
|
485
|
+
| CSS and XPath | ✅ | ✅ | ✅ | ✅ | — | — |
|
|
486
|
+
| Spider with concurrency | ✅ | ✅ | ✅ deep crawl | ✅ | ✅ | ◐ |
|
|
487
|
+
| Pause / resume | ✅ | ✅ | ◐ crash recovery | — | ◐ persisted queue | — |
|
|
488
|
+
| `robots.txt` | ✅ on by default | ✅ opt-in | — | ✅ | — | — |
|
|
489
|
+
| Proxy rotation | ✅ | ✅ | ✅ | — | ✅ | — |
|
|
490
|
+
| CLI | ✅ | ✅ | ✅ | ✅ | scaffolding only | ✅ |
|
|
491
|
+
| Interactive shell | ✅ with curl import | ✅ | — | ✅ | — | — |
|
|
492
|
+
| MCP server | ✅ 11 tools | ✅ | ✅ | — | — | — |
|
|
493
|
+
| LLM-ready Markdown | ✅ | ✅ | ✅ | — | — | ✅ |
|
|
494
|
+
| Zero-config extraction: products, articles | ✅ | — | — | — | — | ✅ articles only |
|
|
495
|
+
| Zero-config extraction: recipes, events, jobs, reviews, FAQ, contacts, breadcrumbs, pagination | ✅ | — | — | — | — | — |
|
|
496
|
+
| Page-type detection | ✅ | — | — | — | — | — |
|
|
497
|
+
| Several fetcher types in one spider | ✅ named sessions | ✅ | — | — | — | — |
|
|
498
|
+
| Agent skill | ✅ | ✅ | — | — | — | — |
|
|
499
|
+
| License | MIT | BSD-3 | Apache-2.0 | BSD-3 | Apache-2.0 | Apache-2.0 |
|
|
500
|
+
|
|
501
|
+
**Where OmniScrape is behind today:** light browser stealth patches (no browser fingerprint randomisation) and no Cloudflare challenge solving, which this project deliberately does not build; no LLM-based extraction. Scrapling ships a more mature anti-bot story; if Turnstile bypass is your main need, use it.
|
|
502
|
+
|
|
503
|
+
## Documentation
|
|
504
|
+
|
|
505
|
+
- **Wiki:** [github.com/loganathan-ai-dev/Omni-Scrape/wiki](https://github.com/loganathan-ai-dev/Omni-Scrape/wiki)
|
|
506
|
+
- **Guides in the repo:** [docs/README.md](https://github.com/loganathan-ai-dev/Omni-Scrape/blob/main/docs/README.md): [fetching and stealth](https://github.com/loganathan-ai-dev/Omni-Scrape/blob/main/docs/fetching-and-stealth.md), [selectors and extraction](https://github.com/loganathan-ai-dev/Omni-Scrape/blob/main/docs/selectors-and-extraction.md), [crawling and storage](https://github.com/loganathan-ai-dev/Omni-Scrape/blob/main/docs/crawling-and-storage.md), [Markdown, CLI and agents](https://github.com/loganathan-ai-dev/Omni-Scrape/blob/main/docs/markdown-and-agents.md)
|
|
507
|
+
- **Agents:** the `omniscrape` skill ships in [`.claude/skills`](https://github.com/loganathan-ai-dev/Omni-Scrape/tree/main/.claude/skills/omniscrape) and [`.agents/skills`](https://github.com/loganathan-ai-dev/Omni-Scrape/tree/main/.agents/skills/omniscrape). As a Claude Code plugin: `/plugin marketplace add loganathan-ai-dev/Omni-Scrape` then `/plugin install omniscrape@omni-scraper`.
|
|
508
|
+
|
|
509
|
+
## Responsible use
|
|
510
|
+
|
|
511
|
+
> [!WARNING]
|
|
512
|
+
> OmniScrape detects anti-bot systems (Cloudflare, DataDome, PerimeterX, Akamai, Kasada, AWS WAF) and reports them in `defense_detected`. It does **not** solve CAPTCHAs or interactive challenges. The stealth tier runs only when you pass `allow_stealth=True` or `tier=3`. Only scrape what you are allowed to scrape.
|
|
513
|
+
|
|
514
|
+
- `CrawlEngine` and `map_site` obey `robots.txt`, including `Crawl-delay` and `*` / `$` wildcards, by default.
|
|
515
|
+
- `DomainThrottle` shares `Retry-After` cool-downs across workers. Respect site terms and prefer official APIs.
|
|
516
|
+
- See [SECURITY.md](https://github.com/loganathan-ai-dev/Omni-Scrape/blob/main/SECURITY.md) to report a vulnerability.
|
|
517
|
+
|
|
518
|
+
## Contributing
|
|
519
|
+
|
|
520
|
+
```bash
|
|
521
|
+
git clone https://github.com/loganathan-ai-dev/Omni-Scrape.git && cd Omni-Scrape
|
|
522
|
+
pip install -e ".[dev,browser,mcp,storage,fast]" && playwright install chromium
|
|
523
|
+
ruff check . && pytest
|
|
524
|
+
```
|
|
525
|
+
|
|
526
|
+
Read [CONTRIBUTING.md](https://github.com/loganathan-ai-dev/Omni-Scrape/blob/main/CONTRIBUTING.md). Release history is in the [CHANGELOG](https://github.com/loganathan-ai-dev/Omni-Scrape/blob/main/CHANGELOG.md).
|
|
527
|
+
|
|
528
|
+
## License
|
|
529
|
+
|
|
530
|
+
[MIT](https://github.com/loganathan-ai-dev/Omni-Scrape/blob/main/LICENSE) © 2026 Loganathan M
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
omniscrape/__init__.py,sha256=dVij55_dLt5FevSB2uaISXdSPMRr42YoicMw4RG7VxY,12793
|
|
2
|
+
omniscrape/_version.py,sha256=6fn8C2Y4krXJzGy4qus-NHXH0T-ISCGgiLflckOV8Yo,63
|
|
3
|
+
omniscrape/client.py,sha256=N6cGehshx8T1SfFQ4mQT1ZekHvsAHv72VjqREh5KGlk,16998
|
|
4
|
+
omniscrape/curl.py,sha256=2B2z9LpZr3ZCNRsIo8M62s0-W9f14TO0ywL9auT-H20,14057
|
|
5
|
+
omniscrape/exceptions.py,sha256=IPHGoPSkpCLqzzeqQhRhNbhSwwPoRNjBqCXP2gGueZU,2675
|
|
6
|
+
omniscrape/models.py,sha256=c007CI_W6toKFDlxjTlolwUghgOhSEUHqDy3dct6-KA,7499
|
|
7
|
+
omniscrape/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
|
+
omniscrape/classifier/__init__.py,sha256=iWWJlzaP6Xodhv7xyt5T799JoW171ZlI_MRTujxXAGI,212
|
|
9
|
+
omniscrape/classifier/detector.py,sha256=epeecFSubmD0a_z7snqAm1-X8OuQiXylf6XoJZ1rmoA,8244
|
|
10
|
+
omniscrape/classifier/strategies.py,sha256=fAiQYXCYrIPwrQ5b5msV9RhGTvQVDp5RliEvlQXzukU,3042
|
|
11
|
+
omniscrape/cli/__init__.py,sha256=VBnyKq60VbAHJwiMfuWeswRAGladfZN45kwtlluqLRM,75
|
|
12
|
+
omniscrape/cli/main.py,sha256=a4IHmF_QvxyyThIIBxdSuWrPJjVOJ2HOrc_rpPJoO-4,20619
|
|
13
|
+
omniscrape/content/__init__.py,sha256=aRGO0vfJFRQmkxO6FcGtXOouMUp0Q0djPpyFwZ3Wl4M,665
|
|
14
|
+
omniscrape/content/chunking.py,sha256=sfCDkk44iRfg730QjYNzAsO_HLhZIgtjG4dhU-CKZ-I,2416
|
|
15
|
+
omniscrape/content/extract.py,sha256=JkqhJjM7vySVHG1lhDNoX0mJDgxf6dKQdcBDwYXfz38,10941
|
|
16
|
+
omniscrape/content/filters.py,sha256=sBA8UvZiiq2az0YRB8VgUDSW4TSRoK3DEJHNf5Zyzo0,2469
|
|
17
|
+
omniscrape/content/markdown.py,sha256=elewQ-Joz2VyzoDpIWKFQwOK8HEKq0mOH6GuDWUpBSk,11193
|
|
18
|
+
omniscrape/content/metadata.py,sha256=obWADp_Ic5C7PvQ4lwkahNk_SsozycCBJoYcGGHYRmI,7553
|
|
19
|
+
omniscrape/content/tokens.py,sha256=Ccqzfwtua_CmnfN3Ujc7VX_Bdl52c9ZqJgEyYPJ831g,844
|
|
20
|
+
omniscrape/crawler/__init__.py,sha256=yp9CNPNyC4z0yX0QQnPKMTjAD7tJ6Sf3fBw6qgBYp9g,685
|
|
21
|
+
omniscrape/crawler/engine.py,sha256=OHrpy15psweIzM4O2PNhiY1X40LTlKd4pqhHa-rRHPw,16642
|
|
22
|
+
omniscrape/crawler/links.py,sha256=EcXrZ57siQkghrWRgkFxUcMRIrRMWiztmZUedkuNPGU,4049
|
|
23
|
+
omniscrape/crawler/queue.py,sha256=TMOMtO3AdjyemF_uEgDmMVY6m-tHsd90JpA7Vad1gSM,5330
|
|
24
|
+
omniscrape/crawler/robots.py,sha256=M9AkU7fvXm01MZGWd8BRNQDj8eMpqGOJayuescHfzvM,9147
|
|
25
|
+
omniscrape/crawler/sitemap.py,sha256=lO9vSBxq6XUUNnDn8KD_rtSfAMRVRp3vbW_SqucbZHQ,4340
|
|
26
|
+
omniscrape/crawler/spider.py,sha256=hx84AU_QapZamslAJr29tJNumQ0iDksYQqy3Obwyu3E,3505
|
|
27
|
+
omniscrape/crawler/throttle.py,sha256=UNpWeCMh8J-mKOGrXKwfrxXQsUsnrvWkcyVFi7EC5xQ,3801
|
|
28
|
+
omniscrape/crawler/urls.py,sha256=lCcIsNj_qzBEahiFqjCUnLFO-9q94xAbA3f0EwpxAL4,2838
|
|
29
|
+
omniscrape/extract/__init__.py,sha256=93_sU79Tdw22AHpTcmoSMQkUIBOq20OchMQb5idplz4,757
|
|
30
|
+
omniscrape/extract/entities.py,sha256=lZMqOBfimJSkkNgm4WmIALNh_OS2X9J4Wne8UMsgLe0,36566
|
|
31
|
+
omniscrape/extract/listings.py,sha256=nECbcbonFRcp3qHkjssccT5GXVwQzw6fY8HwKvs1Sbc,2611
|
|
32
|
+
omniscrape/extract/product.py,sha256=1pvZdjO2dhMw7E3byS_0Lh_zosNl7l_MiO9yWgAgTXc,21362
|
|
33
|
+
omniscrape/fetchers/__init__.py,sha256=kS5vgUSbfdR5AtER7peJ4HDTeRLE56Z14BbgJ8087jE,407
|
|
34
|
+
omniscrape/fetchers/actions.py,sha256=3R_-C8XOujoZwD2hpwnEJiRGl4ajEw22at0ETyp1Sns,8650
|
|
35
|
+
omniscrape/fetchers/base.py,sha256=FQzw8sFecyETO8EVtU-PcIw5B4T81cPga9INu2KF7-w,2118
|
|
36
|
+
omniscrape/fetchers/browser.py,sha256=FsLsuXEnN8G8LYBstaTVxHTSTx7yeMT9DL4XjVmUrqA,10036
|
|
37
|
+
omniscrape/fetchers/http.py,sha256=JCPHlJJBx4zW2pBaViGPje-EIPxEDC7WIRHyJMV_rFk,9014
|
|
38
|
+
omniscrape/fetchers/httpx_fetcher.py,sha256=yDG7boZ_TPftTCHXmkUFO0b1jDztwBb85IgmW0iqClI,3217
|
|
39
|
+
omniscrape/fetchers/pool.py,sha256=-IZwovT27zV6qCTAp_UKAcMzVQ2zoun-n-ItOXFDI2I,2952
|
|
40
|
+
omniscrape/fetchers/registry.py,sha256=6b8e13hFjFxwoPt_5hBjAf2DlHsBW7pjeV5-xM-34oU,4052
|
|
41
|
+
omniscrape/fetchers/stealth.py,sha256=g61KKSp6dIkJAe0t6HZqZY-7FJ-RnKsV806Jc0GOCrI,6574
|
|
42
|
+
omniscrape/mcp/__init__.py,sha256=KZ710bM4cfrBsnERf5rT1dexJS2vMeaTZP8A0X_7t5Q,113
|
|
43
|
+
omniscrape/mcp/server.py,sha256=RLD5twUP_tIrB329a5cfkuMdzwoNs7cYVtRdIXJ89pY,9401
|
|
44
|
+
omniscrape/normalizers/__init__.py,sha256=MVK_-9xnSJpDVnLUl0ud_JiWuzqmHZmrMn-UKGIgfOQ,350
|
|
45
|
+
omniscrape/normalizers/currency.py,sha256=JtFqMR_trqSSH3u-tpBf_rzcnpMIwszRucR6OTV7cT8,3764
|
|
46
|
+
omniscrape/normalizers/dates.py,sha256=qhKxEuAk7n4TclsIyCK8tzdYl7oicM95vSn8Yez-dy0,516
|
|
47
|
+
omniscrape/normalizers/markdown.py,sha256=Q29yAwtJ-fc3moLfMvmHV6RqwaQH9Ab4Qwj8AN92bdM,808
|
|
48
|
+
omniscrape/normalizers/units.py,sha256=1gpZIlm4rHrgbLxjnd3jQMX2zkP51Fz0W0DAJ2bBfFM,1803
|
|
49
|
+
omniscrape/observability/logging.py,sha256=cdfSAC798r4LF5AqygMqkpR_Z58GV7L0uX4dexQ-vdY,1253
|
|
50
|
+
omniscrape/observability/metrics.py,sha256=x0CglpLm0Kguhbv3XckQ76P39sKKs-NyZOYM-lF-b2M,1482
|
|
51
|
+
omniscrape/parsers/__init__.py,sha256=Zp5PB9_EqTgULIsttHyU79dQLgcLPTfJiOeuQc1aZAU,481
|
|
52
|
+
omniscrape/parsers/adaptive.py,sha256=Mi30WWGy2o6ibSeMDi8aBSCRSFowOdtg_ZLHh_4-PHo,16347
|
|
53
|
+
omniscrape/parsers/density.py,sha256=ZWpUX_KevUM6pI-QfR0ZxsaspQ7JD7XeNGLDleG4SLk,2165
|
|
54
|
+
omniscrape/parsers/selector.py,sha256=mK9WF8Tqdku8Uj2g7pmlHLr3SGNSXc-l1eH7Pcr5Ips,29382
|
|
55
|
+
omniscrape/parsers/semantic.py,sha256=_zjTwYWKVvKPrGN_QVqTR97wfuVZsRCvHxVLXkSZvek,4553
|
|
56
|
+
omniscrape/parsers/structured.py,sha256=T95ZF-f_upWbQUkTeKTY_GtMvg0CBAekX6Zvz9t4RCk,10040
|
|
57
|
+
omniscrape/parsers/tables.py,sha256=753GdngBMGSckHKZZwiFNnNLcTvn0PbCoyhghLkCQiw,3065
|
|
58
|
+
omniscrape/resilience/__init__.py,sha256=OrEppqaTstjnlYFnYnH0UDaDqsoptet7PJtuJuIx3ME,290
|
|
59
|
+
omniscrape/resilience/circuit_breaker.py,sha256=lDRir00hhmN-ZYXC3aeF0GsmTc-CxK0_nJHnv92OwwA,1607
|
|
60
|
+
omniscrape/resilience/dead_letter.py,sha256=5kqSy7AL7s0f3tesIiYqfVuGVC5RGwZIg4OoTOGw7T4,1937
|
|
61
|
+
omniscrape/resilience/retry.py,sha256=pj5Tz-v4LemLakwKmd654pQlPZo_IqRP8gXuTEj_k-g,1784
|
|
62
|
+
omniscrape/storage/__init__.py,sha256=rJ_Kdyer9zixcAK6m1Pb6UfnY0Rl_bE9Igw3jjv5Y_Q,272
|
|
63
|
+
omniscrape/storage/base.py,sha256=P33WNt8NxjbiXfLlwidYkXB5n8AhJ-3gzVIIkdbAYMg,733
|
|
64
|
+
omniscrape/storage/duckdb_backend.py,sha256=YvRCa_hqZGuyH2v63pY3iA3D2o37LdgqD4AyGXLxs_4,3880
|
|
65
|
+
omniscrape/storage/jsonl_backend.py,sha256=agf56CwTPZJeaK9tyj11FDbVt6NBnAISkrkrn51V8og,1727
|
|
66
|
+
omni_scraper-0.1.0.dist-info/METADATA,sha256=lHW8k_dh6HutviquEvVnD_-4rpS-hBMjL9qD-JsnbEI,28448
|
|
67
|
+
omni_scraper-0.1.0.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
68
|
+
omni_scraper-0.1.0.dist-info/entry_points.txt,sha256=3jXN8C9sTpVKeKugkaOP75Jf-1ezle4LCpf7yda1sy0,55
|
|
69
|
+
omni_scraper-0.1.0.dist-info/licenses/LICENSE,sha256=3GJNhA_SJzjUbOff3O2ptQrQbhObD_DKf2wcfXYz8kw,1069
|
|
70
|
+
omni_scraper-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Loganathan M
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|