This tool to generate ebooks for Destiny lore based on info retrieved from the existing Bungie APIs. It is a rework of this "hack session" style tool.
This software requires the following to be run
- Python 2.7 (https://www.python.org/download/releases/2.7/)
- pip (https://pip.pypa.io/en/stable/installing)
- A created Bungie app credential (https://www.bungie.net/en/Application/Create)
- Make a note of the created API Key
- Install all Python dependencies by running
pip install -r requirements.txt
- From the base folder of the project, run the following command
python grimoireebook.py <BUNGIE_API_KEY>
After execution, navigate to you home directory. There should be a .destinyLore folder there. Inside you will find a file called destinyGrimoire.epub
When you run the code, the following happens
- The Destiny Grimoire is downloaded and translated (in-memory) for later use.
- Using that information, all the image files are then downloaded into the USER_HOME_DIRECTORY/.destinyLore folder (it will be created if it does not exist)
- Because the images that Bungie supplies are actually like composed tapestries, some image manipulation magic is performed to generate the individual page images.
- All data is poured into an epub file under that same folder.