Jump to content

Community Data Science Workshops (Spring 2014)/Saturday May 3rd lecture: Difference between revisions

imported>Mako
imported>Mako
Line 45:
#* navigate to [http://en.wikipedia.org/w/api.php api page] and show the documentation, point out examples
#* looking at the images within a page http://en.wikipedia.org/w/api.php?action=query&titles=Seattle&prop=images&imlimit=20&format=jsonfm
#* change the city with a custom URL
#* looking at within two pages http://en.wikipedia.org/w/api.php?action=query&titles=Seattle|Bellevue,_Washington&prop=images&imlimit=50&format=jsonfm
#* (if time) parse through the output
#* edit count http://en.wikipedia.org/w/api.php?action=query&list=users&ususers=Benjamin_Mako_Hill|Jtmorgan|Sj|Mindspillage&usprop=editcount&format=jsonfm
#* give(if metime) theedit content of the main pagecount http://en.wikipedia.org/w/api.php?format=json&action=query&titleslist=Main%20Pageusers&propususers=revisionsBenjamin_Mako_Hill|Jtmorgan|Sj|Mindspillage&rvpropusprop=editcount&format=contentjsonfm
#* (if time) give me the content of the main page http://en.wikipedia.org/w/api.php?format=json&action=query&titles=Main%20Page&prop=revisions&rvprop=content
# Other APIs
#* every API is different, so read the documentation!
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.