The first iteration of our script will focus primarily on ingesting and processing the data appropriately. In this script, we'll print out transaction summaries for the account to the console. In later iterations, we'll add logging and outputting data to a CSV file. This script has been written and tested specifically for Python 3.7.1. The usage of the urllib library, a library we use to make HTTP requests, is structured differently in Python 2 and 3. In the final iteration of this script, we'll demonstrate the necessary code to make this script Python 2 and 3 compatible.
We'll use five modules in the initial version of the script. The argparse, json, urllib, and sys modules are all part of the standard library. The unix_converter module is the mostly unmodified script that we wrote in Chapter 2, Python...