Guide
Quickstart
You need Python 3.10 or newer installed.
pip install llms-generator
llms-gen https://example.com
This creates llms.txt in your current folder. Add --full to also generate the full content version:
llms-gen https://example.com --full
Usage
Crawl options
Flag |
Default |
Description |
|---|---|---|
|
required |
Target website URL |
|
2 |
Maximum crawl depth |
|
llms.txt |
Output file path |
|
false |
Also generate llms-full.txt |
|
1.0 |
Seconds between requests |
|
false |
Skip Playwright JS fallback |
Examples
Crawl with custom depth and delay:
llms-gen https://example.com --depth 3 --delay 0.5
Write to a specific output path:
llms-gen https://example.com --output public/llms.txt
JavaScript sites
Install with JS support:
pip install llms-generator[js]
The tool falls back to Playwright when HTTP fetch returns empty content.
Excluding paths
Add Disallow rules in robots.txt:
User-agent: llms-generator/0.1
Disallow: /tag/
Disallow: /author/