This is a simple script for downloading all attachements from all tickets in Trac. I looked around and found nothing to fit my needs so here is a script I whipped up. It uses BeautifulSoup4
to crawl the pages, and requests
to fetch the content.
$ virtualenv venv
$ . venv/bin/activate
$ pip install -r requirements.txt
$ python extract.py <link to trac site> -exec
The -exec
is required to create directories and files in the current directory.
Thats all there is to it.