This example project is a companion to this article about how to consume open web APIs with Python
This project contains a simple Python3 example for working with an open API (in this case the NASA API.
In this example, the Astronomy Picture of the Day is retrieved and a copy of it, along with a .json info file, is saved to the data/
folder.
To run this example:
- If you don't already have Python3, grab it over here
- Clone this repo
- Run the example with
./run.sh
or by executingpython3 main.py
- Check contents of
data/
for today's featured astronomy photo from NASA
If you notice something out of place or in need of some improvements: issues, pull requests, and other contributions are welcome.
Thanks for checking out this project! @8_bit_hacker