Playing with APIs in Python

I started doing the Codecademy lessons How to use APIs with Python. They’re not the greatest, but they’re helpful.

I quickly learned that the lessons are using Python 2, for which the requests module is apparently built-in. But if you try to import requests in a Python 3 script, no good.

All you need to do to make it work is install the requests library, like so:

Screen Shot 2016-02-24 at 9.01.53 AM

This is a pretty neat library for working with APIs: Read more here.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s