1. Setup

About the code

The import block

This stock import block, as we’ll see in the coming code, doesn’t change much.

    #!/usr/bin/env python3
    import urllib.request
    import urllib.parse
    import urllib.error
    import json

To keep the workshop simple we’re only using these standard libraries. The others we add we’ll be writing ourselves.