Internal Project name: Erossmann
Garnet is a simple and fast pixiv fanbox.cc downloader.
The previous downloader had 2 glaring issues:
- Uses requests. Although it's possible to do with threads, asyncio & aiohttp can achieve greater speeds.
- The code looked overly complicated for a simple fanbox.cc downloader.
The script is split into 2 parts. The indexer.py
and downloader.py
. For Indexing and Downloading.
Requires Python 3.7 or greater. Personally I used Python 3.10.
You may install via:
pip install -r requirements.txt
or install it manually by:
pip install tqdm aiohttp aiofiles orjson PyYAML
Figure it out yourself. Should be rather simple though:
- Set your fanbox.cc cookie, set the users you want to scrape.
- Rename the
Config.sample.yaml
to justConfig.yaml
. Remove the.sample
would do. - Install required dependencies.
- Run
Indexer.py
- Run
Downloader.py
- See your results in
work-path
specified in the YAML config.
- The script does script page and attempts to convert to Markdown. But it does not do style text as of now. I do eventually want to relook at it. But for now it works.
As you can tell from the side, it's LGPL 3.0.