<div dir="ltr"><div>Hi, folks!  I did a little demo at Thursday's dojo of using requests to get JSON data from a RESTful API, so here's the code:</div><div><br></div><div><span style="font-family:monospace">import requests<br>BASE_URL = '<a href="https://ghibliapi.herokuapp.com">https://ghibliapi.herokuapp.com</a>'<br>url = f"{BASE_URL}/people"<br>people = requests.get(url).json()<br>for person in people:<br>    print(person['name'])<br>    for film in person['films']:<br>        film_response = requests.get(film)<br>        print(f"    {film_response.json()['title']}")</span></div><div><br></div><div>Of course, you'll need to `pip install requests` first... <br></div><div><br></div><div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">- Catherine<br><a href="http://catherinedevlin.blogspot.com" target="_blank">http://catherinedevlin.blogspot.com</a><br></div></div></div>