dweinberger / syllabiBrowser

Searches Dan Cohen's 2009 database of online syllabi (note: not syllabi of online courses). Checks if file is still online. Creates json.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

READ ME - Environmental Syllabi Filter

In March, 2011, Dan Cohen published a database of over one million syllabi that he had discovered using Google's API. Dan's database includes the syllabus' URL, title, snippet, and some more; it does not include the syllabus' text itself.

In this current project, I loaded Dan's SQL file into mysql and named it "syllabi." Then I wrote a little and clunky PHP script — getSyllabi.php — that lets you filter it for keywords in the title. It produces a JSON file of the syllabi that are still online as of Nov. 12, 2016. (To judge whether a file is online, it gets the header and looks for "200" in it.)

To change the keywords the script looks for, just change $query.

The script reads a little JSON file — login.json — that contains the username and password for your database. Edit that file so it contains your info, or just plop your username and password straight into the PHP file, of course.

syllabi-ecology-with-tags.json contains metadata about 444 syllabi that have "ecology" in the title and that are still available online; there are a total of about 2,400 syllabi that meet that condition in the database, but most are no longer available.

environment-with-tags.json contains metadata about 275 syllabi with the stem "environment" in the title that are still online. That's out of 2,808 total in the database. The entries in this file contain no duplicates that are in the other json file.

Both files contain tags generated by climatetagger.net. These tags were added after the initial generation of these files by running those files through the getTags.php script.

FWIW, this script is offered as Open Source software. Do what you want with it, except try not to laugh. I'm an amateur.

David Weinberger
November 12, 2016 updated Nov. 16, 2016
david@weinberger.org

About

Searches Dan Cohen's 2009 database of online syllabi (note: not syllabi of online courses). Checks if file is still online. Creates json.

License:MIT License


Languages

Language:PHP 100.0%