A web application that scrapes and converts docs.rs documentation into a single markdown file. This tool allows you to easily create offline documentation for Rust crates.
git clone https://github.com/toolworks-dev/docsrs-scraper.git
cd docsrs-scraper
docker compose up -d
Access the web interface at http://localhost:8721
- Clone the repository:
git clone https://github.com/toolworks-dev/docsrs-scraper.git
cd docsrs-scraper
- Create and activate virtual environment:
python -m venv venv
source venv/bin/activate
- Install dependencies:
pip install -r requirements.txt
- Run with Gunicorn:
gunicorn --bind 0.0.0.0:8721 --workers 4 --timeout 120 wsgi:app
- Navigate to
http://localhost:8721
- Enter the crate path (e.g.,
wgpu/latest/wgpu
) - Enter desired output filename
- Click "Generate Documentation"
- Download the generated markdown file
python docs_scraper.py https://docs.rs/wgpu/latest/wgpu output.md