Small Olostep crawler project with:
crawl_docs_with_olostep.pyfor crawling docs pages and saving cleaned markdownapp.pyfor a simple Gradio UI on top of the crawler
This project is useful if you want to crawl documentation websites, clean the extracted markdown, and quickly inspect the results from a small local web app.
The crawler:
- starts from a target URL
- follows the crawl settings you provide
- removes common docs-site UI noise from the markdown
- saves each crawled page as its own
.mdfile
Install dependencies:
pip install -r requirements.txtCreate a .env file:
OLOSTEP_API_KEY=your_api_key_herecrawl_docs_with_olostep.py: main crawler scriptapp.py: Gradio app for running and previewing crawlsrequirements.txt: project dependencies.env: local API key configuration- generated output folders: saved markdown files for each crawled URL
python crawl_docs_with_olostep.pyThe script uses the values defined in crawl_docs_with_olostep.py and saves cleaned markdown files into the configured output folder.
python app.pyThe app lets you:
- enter a URL
- set crawl limits
- set include and exclude patterns
- run or clear a crawl
- preview saved markdown files
The output folder is automatically based on the URL you provide.
Examples:
https://docs.olostep.com/->docs.olostep.comhttps://docs.olostep.com/get-started/welcome->docs.olostep.com__get-started-welcome
Each saved markdown file includes:
- the original source URL in frontmatter
- cleaned markdown content for the page
- The app and script both require a valid
OLOSTEP_API_KEY - The app is a thin wrapper around the crawler script, not a separate crawling backend
- Clear removes saved
.mdfiles for the current URL-based output folder