Quick "hack session" style Destiny Lore Ebook generator (EPUB format).
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)
- jq (https://stedolan.github.io/jq/)
- curl (https://curl.haxx.se/)
- A created Bungie app credential (https://www.bungie.net/en/Application/Create)
- Install all requirements
- Make a note of the created API Key
- Install all Python dependencies by running
pip install -r requirements.txt
- Run the retrieveAndGenerateGrimoire.sh script, providing it the Bungie API key as a parameter
./retrieveAndGenerateGrimoire.sh <API_KEY>
After execution, you should find a destinyGrimoire.epub file on the same folder.
When running the script above, the following happens:
- The Destiny Grimoire is downloaded (using curl) from Bungie using the provided API Key.
- Using jq, the json Grimoire is "distilled" to the attributes that are of relevance for creating the epub. The result is stored under destinyGrimoire.json.
- A folder images is created (it is deleted first if it exists)
- All images described in the grimoire are downloaded to said images folder.
- The epub is generated using all the previously retrieved resources and Python.