Here is a simple example of calling the IBM Weather Company REST API using Python. The program asks for a US ZIP code and then displays some of the data. A perfect program for an intro to programming class. Also, on GitHub.
The code below demonstrates how to use Python to connect to a MongoDB database. I chose to use a cloud based instance of MongoDB provided free of charge by MongoLab.com. The script demonstrates how to: Use the PyMongo library to connect to a Mongo database Insert documents into a collection Display all of the documentsContinue reading “MongoDB and Python: A Simple Example”