{"id":15818448,"url":"https://github.com/edsu/wikicites","last_synced_at":"2025-07-16T12:34:12.504Z","repository":{"id":8846332,"uuid":"10552842","full_name":"edsu/wikicites","owner":"edsu","description":"get a stream of recent citations from wikipedia","archived":false,"fork":false,"pushed_at":"2013-09-30T01:07:21.000Z","size":352,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-12T06:39:21.080Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/edsu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-06-07T15:30:28.000Z","updated_at":"2019-10-10T22:50:02.000Z","dependencies_parsed_at":"2022-09-08T14:32:22.087Z","dependency_job_id":null,"html_url":"https://github.com/edsu/wikicites","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edsu%2Fwikicites","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edsu%2Fwikicites/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edsu%2Fwikicites/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edsu%2Fwikicites/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edsu","download_url":"https://codeload.github.com/edsu/wikicites/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246586036,"owners_count":20801028,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-05T06:02:02.018Z","updated_at":"2025-04-01T05:13:33.390Z","avatar_url":"https://github.com/edsu.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"wikicites\n=========\n\nwikicites is a module that allows you to get a stream of recent citations \nout of Wikipedia(s) as JSON.  Citations are the bedrock of Wikipedia, since \neditors are interested in [verifiability not truth](https://en.wikipedia.org/wiki/Wikipedia:Verifiability,_not_truth) ... \nand citations are a big part of what makes verification possible.\n\nInstall\n-------\n\n1. get [nodejs](http://nodejs.org)\n1. npm install wikicites\n\nUse\n---\n\n### CoffeeScript\n\n```coffeescript\nWikiCites = require('wikicites').WikiCites\n\nw = new WikiCites(channels: [\"#en.wikipedia\"])\nw.listen (citation) -\u003e\n  console.log citation\n```\n\n### NodeJS\n\n```javascript\nvar WikiCites = require('wikicites').WikiCites;\n\nw = new WikiCites({channels: [\"#en.wikipedia\"]})\nw.listen(function(citation) {\n  console.log(citation);\n});\n```\n\n### Citation Data \n\nIn these two examples a callback is receiving a citation as it occurs in an edit\non Wikipedia. The citation is a JavaScript object that will look something like:\n\n```javascript\n{\n  \"type\": \"news\",\n  \"last\": \"Crace\",\n  \"first\": \"John\",\n  \"title\": \"David Cesarani: The making of a defiant moderate\",\n  \"url\": \"http://www.guardian.co.uk/education/2004/oct/12/academicexperts.highereducationprofile?INTCMP=SRCH\",\n  \"accessdate\": \"19 April 2011\",\n  \"newspaper\": \"The Guardian\",\n  \"date\": \"12 October 2004\",\n  \"change\": {\n    \"channel\": \"#en.wikipedia\",\n    \"flag\": \"\",\n    \"page\": \"David Cesarani\",\n    \"pageUrl\": \"http://en.wikipedia.org/wiki/David_Cesarani\",\n    \"url\": \"http://en.wikipedia.org/w/index.php?diff=567685070\u0026oldid=567623667\",\n    \"delta\": 511,\n    \"comment\": \"Reverted 1 edit by [[Special:Contributions/Red Stone Arsenal|Red Stone Arsenal]] ([[User talk:Red Stone Arsenal|talk]]): Get consensus for your change, drive by reverts every few months aint that. ([[WP:TW|TW]])\",\n    \"wikipedia\": \"English Wikipedia\",\n    \"wikipediaUrl\": \"http://en.wikipedia.org\",\n    \"user\": \"Nableezy\",\n    \"userUrl\": \"http://en.wikipedia.org/wiki/User:Nableezy\",\n    \"unpatrolled\": false,\n    \"newPage\": false,\n    \"robot\": false,\n    \"anonymous\": false,\n    \"namespace\": \"Article\"\n  }\n}\n```\n\nwhich would represent the following citation wikitext:\n\n    {{cite news\n      |last=Crace\n      |first=John\n      |title=David Cesarani: The making of a defiant moderate\n      |url=http://www.guardian.co.uk/education/2004/oct/12/academicexperts.highereducationprofile?INTCMP=SRCH\n      |accessdate=19 April 2011\n      |newspaper=The Guardian\n      |date=12 October 2004}}\n\nIn addition to the citation information you can see that the JSON object \nincludes information about the change itself, what Wikipedia article the \ncitation appears in, what Wikipedia the article belongs to, who made the edit, \netc.\n\nDevelop \n-------\n\nTo hack on wikicites you'll need to clone this repository, install the \ndependencies, and then run the test suite with mocha:\n\n    git checkout https://github.com/edsu/wikicites.git\n    cd wikicites\n    npm install\n    node_modules/.bin/mocha \n\nIf you use mocha with other projects you may want to install it globally which\nwill put it in your system PATH:\n\n    npm install -g mocha\n\nSome tests may spuriously fail if they timeout before an edit with a citation \noccurs on Wikipedia.\n\n[![Build Status](https://travis-ci.org/edsu/wikicites.png?branch=master)](https://travis-ci.org/edsu/wikicites)\n\nLicense\n-------\n\n* CC0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedsu%2Fwikicites","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedsu%2Fwikicites","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedsu%2Fwikicites/lists"}