contextractor 0.3.1 → 0.3.2
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.
- package/README.md +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ Works with zero config. Pass URLs directly, or use a config file for complex set
|
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
24
|
contextractor https://example.com --precision --format json -o ./results
|
|
25
|
-
contextractor --config config.
|
|
25
|
+
contextractor --config config.json --max-pages 10
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
### CLI Options
|
|
@@ -31,7 +31,7 @@ contextractor --config config.yaml --max-pages 10
|
|
|
31
31
|
contextractor [OPTIONS] [URLS...]
|
|
32
32
|
|
|
33
33
|
Crawl Settings:
|
|
34
|
-
--config, -c Path to
|
|
34
|
+
--config, -c Path to JSON config file
|
|
35
35
|
--output-dir, -o Output directory
|
|
36
36
|
--format, -f Output format (txt, markdown, json, jsonl, xml, xmltei)
|
|
37
37
|
--max-pages Max pages to crawl (0 = unlimited)
|
|
@@ -95,7 +95,7 @@ CLI flags override config file settings. Merge order: `defaults → config file
|
|
|
95
95
|
|
|
96
96
|
### Config File (optional)
|
|
97
97
|
|
|
98
|
-
|
|
98
|
+
Use a JSON config file to set options:
|
|
99
99
|
|
|
100
100
|
```json
|
|
101
101
|
{
|
|
@@ -214,7 +214,7 @@ docker run -v ./output:/output ghcr.io/contextractor/contextractor https://examp
|
|
|
214
214
|
Use a config file:
|
|
215
215
|
|
|
216
216
|
```bash
|
|
217
|
-
docker run -v ./config.
|
|
217
|
+
docker run -v ./config.json:/config.json ghcr.io/contextractor/contextractor --config /config.json
|
|
218
218
|
```
|
|
219
219
|
|
|
220
220
|
All CLI flags work the same inside Docker.
|