]> projects.mako.cc - wikipedia-api-cdsw/log
wikipedia-api-cdsw
9 years agorevamped the wikipedia project
Benjamin Mako Hill [Mon, 20 Apr 2015 23:58:59 +0000 (16:58 -0700)]
revamped the wikipedia project

- removed mwclient (requests params argument is basically good enough)
- shows examples that uses params and that do it the "hard way" to show what it's doing
- added examples for getting pages in category and categories for a page

9 years agotwo quick updates to the raw files
Benjamin Mako Hill [Mon, 20 Apr 2015 22:26:35 +0000 (15:26 -0700)]
two quick updates to the raw files

- move to Python 3 (i.e., print()'ify stuff)
- requests can do JSON natively using .json() on the request object which
  solves the problem with requests returning bytes

10 years agoRemoved simplejson, updated mwclient, replaced urllib2 with requests
Frances Hocutt [Sat, 15 Nov 2014 07:40:25 +0000 (23:40 -0800)]
Removed simplejson, updated mwclient, replaced urllib2 with requests

Updated and simplified the example programs for the fall CDSW.
simplejson is replaced with json, mwclient is updated to the dev version,
and all API calls use requests (included in Anaconda) instead of urllib2.

10 years agorename files
Benjamin Mako Hill [Wed, 30 Apr 2014 22:22:00 +0000 (15:22 -0700)]
rename files

10 years agoadded example code that uses the urls
Benjamin Mako Hill [Sat, 26 Apr 2014 02:01:57 +0000 (19:01 -0700)]
added example code that uses the urls

10 years agoadded the dependencies for the wikipedia exercises
Benjamin Mako Hill [Sat, 26 Apr 2014 01:52:16 +0000 (18:52 -0700)]
added the dependencies for the wikipedia exercises

Benjamin Mako Hill || Want to submit a patch?