Editing Community Data Science Course (Spring 2023)/Week 6 lecture notes
From CommunityData
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 7: | Line 7: | ||
# Talk about projects | # Talk about projects | ||
# Walk through example code that grabs data from the MediaWiki API and introduces a small number of new concepts | # Walk through example code that grabs data from the MediaWiki API and introduces a small number of new concepts | ||
# | # walk through example code that grabs data from the Yelp API (and uses a module and authentication) | ||
== Final Projects == | == Final Projects == | ||
Line 25: | Line 25: | ||
* [https://www.mediawiki.org/wiki/MediaWiki MediaWiki]: The software that runs many wikis including basically every website on https://fandom.com | * [https://www.mediawiki.org/wiki/MediaWiki MediaWiki]: The software that runs many wikis including basically every website on https://fandom.com | ||
* MediaWiki API with documentation in various places [https://www.mediawiki.org/wiki/API:Main_page] [https://en.wikipedia.org/w/api.php] | * MediaWiki API with documentation in various places [https://www.mediawiki.org/wiki/API:Main_page] [https://en.wikipedia.org/w/api.php] | ||
* Walk through some example code that I've written in | * Walk through some example code that I've written in this notebook {{forthcoming}} | ||
This introduces a few new concepts: | This introduces a few new concepts: | ||
Line 41: | Line 41: | ||
* Installing new Python modules with <code>%run pip install <PACKAGE></code> | * Installing new Python modules with <code>%run pip install <PACKAGE></code> | ||
The Yelp API is ''authenticated''. | The Yelp API is ''authenticated''. Authenticatino can come in one of several forms including: | ||
* keys that are embedded into your normal parameters (like <code>{'api-key' : 'SOMETHING'}</code>) | * keys that are embedded into your normal parameters (like <code>{'api-key' : 'SOMETHING'}</code>) | ||
Line 61: | Line 61: | ||
Now lets end by walking through two examples: | Now lets end by walking through two examples: | ||
* | * Yelp eample notebook #1 {{forthcoming}} | ||
* | * Yelp example notebook #2 {{forthcoming}} |