Skip to content

Daniel-Mietchen/oabot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wikipedia OABOT proof of concept

This scripts looks for open access versions of references in Wikipedia articles. If no URL is provided in the citation template, it adds one that points to an open access repository where the reference is available (if we can find one). In the special cases of arXiv or PubMedCentral, it uses the appropriate citation parameters. See the examples below.

Usage:

  • Install dependencies with pip install -r requirements.txt
  • Install pywikibot (unfortunately it's not in pip)
  • Run the script on a Wikipedia article, for instance Reverse mathematics: python poc.py "Reverse mathematics"
  • This outputs an HTML summary of the proposed changes on the page.
  • You can also run it as a web service with python app.py (or as a WSGI application)

For instance, here is what you get for the following pages (this takes some time to load as it yiels many API calls):

About

Adding links to full text in Wikipedia references

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 90.2%
  • HTML 5.9%
  • CSS 3.9%