Learn REST API with Python script, slides : http://www.slideshare.net/larrycai/learn-rest-apiwithpython
REST/JSON is perfect match to fetch web data, and python requests module
- Ex1: using command line tool
curl
and browser to access http://httpbin.org/get - Ex2: Install
requests
module and try to access http://httpbin.org/get in python interactive module, print r.json() - Ex3: Use below
restapi.py
as base to implement access data in script - Ex4: continue to access https://api.github.com via GET method