fordham-css / TryPy

"If I have seen further, it is by standing on the shoulders of giants" - Sir Isaac Newton
MIT License
0 stars 0 forks source link

Requests API Demo #5

Open nickdibari opened 7 years ago

nickdibari commented 7 years ago

Networking/

Using the requests library from the scrapy.py Web Scraper demo, explore how to use the requests module to send requests to an arbitrary API to get some data and perform some computations/display of data. Should detail how to set up keys for the API && AVOID ADDING KEYS TO VERSION CONTROL. Additionally, demo should explain how to format a request to the API, how to authenticate requests (if needed), and how to process data retrieved from API. Potential demo could utilize the Weather Undergound API to retrieve information on current weather conditions and display them on the terminal.

Weather Underground API: https://www.wunderground.com/weather/api/ Requests Module Documentation: http://docs.python-requests.org/en/master/