HCDS (Fall 2017)/Programming resources: Difference between revisions
From CommunityData
(Created page with "== A1: Data curation programming concepts in Python == === API requests and JSON === ''Note that the APIs used in these tutorials and examples are slightly different in struct...") |
|||
Line 3: | Line 3: | ||
''Note that the APIs used in these tutorials and examples are slightly different in structure from the [https://wikimedia.org/api/rest_v1/ Wikimedia REST API] that you will be querying for this assignment.'' | ''Note that the APIs used in these tutorials and examples are slightly different in structure from the [https://wikimedia.org/api/rest_v1/ Wikimedia REST API] that you will be querying for this assignment.'' | ||
* [[Community_Data_Science_Course_(Spring_2017)/Day_6_Notes|An interactive lecture on API requests and JSON]] | * [[Community_Data_Science_Course_(Spring_2017)/Day_6_Notes|An interactive lecture on API requests and JSON]] | ||
* [DS4UX_(Spring_2016)/Day_5_lecture|Another interactive lecture on API requests and JSON]] | * [[DS4UX_(Spring_2016)/Day_5_lecture|Another interactive lecture on API requests and JSON]]] | ||
* [https://mako.cc/teaching/2014/cdsw-autumn/lecture2-web_apis.pdf Lecture slides introducing APIs, HTTP requests, and JSON] | * [https://mako.cc/teaching/2014/cdsw-autumn/lecture2-web_apis.pdf Lecture slides introducing APIs, HTTP requests, and JSON] | ||
* [https://github.com/makoshark/wikipedia-cdsw/blob/master/building-a-query.md Jupyter notebook on making API requests] | * [https://github.com/makoshark/wikipedia-cdsw/blob/master/building-a-query.md Jupyter notebook on making API requests] |
Latest revision as of 21:12, 14 October 2017
A1: Data curation programming concepts in Python[edit]
API requests and JSON[edit]
Note that the APIs used in these tutorials and examples are slightly different in structure from the Wikimedia REST API that you will be querying for this assignment.
- An interactive lecture on API requests and JSON
- Another interactive lecture on API requests and JSON]
- Lecture slides introducing APIs, HTTP requests, and JSON
- Jupyter notebook on making API requests
- Documentation for the Python requests library: Excellent source of information on how to use the requests library.
Dictionaries[edit]
- Intro to dictionaries: a short overview of working with Python dictionaries. Download the code examples to play along.
CSVs[edit]
- Reading and writing files to CSV: interactive exercise on reading and writing to CSV, with code samples you can download and run.
General resources[edit]
- Learn Python provides interactive tutorials for familiarizing yourself with basic Python programming concepts, operations, and syntax.
- JSON formatter and validator: a web tool that you can paste JSON into to see it's structure more easily.