Skip to main content

Get a list of Wikipedia articles that link to a website.

Project description


wikilinks is a Python command line utility and module that allow you to easily extract external links from Wikipedia that point at a particular website. It can be useful and interesting to see how Wikipedians have cited the content made available on another website. These links say something about the websites placement in Wikipedia, as well as the topics of interest in the website.

The wikilinks code was originally part of a much larger project called Linkypedia that was used to visualize the use of cultural heritage materials on Wikipedia. Linkypedia has since been shut down but perhaps this little piece of functionality could still be of use to you.

While Wikipedia's API allows you list external links from a given page, it doesn't (to my knowledge) have an API call to retrieve pages that link to a particular website. However they do provide the External links search page that lets you perform this lookup in your browser. wikilinks simply scrapes those results, for all language Wikipedias.


pip install wikilinks


Find links in English Wikipedia that point at the website and print them out as tab separated URLs:

% wikilinks --lang en,_Arizona ...

Use as a Library

This example will fetch each Wikipedia article link to the website as a (source, target) tuple:

from wikilinks import wikilinks

for link in wikilinks(""):

Which would output something like:

('', '')
('', '')
('', '')
('', '')
('', '')
('', '')
('', '')

By default wikilinks will search all language Wikipedias. If you are only interested in links from particular language Wikipedias you can use the langs parameter:

for link in wikilinks("", langs=["de", "fr"]):

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for wikilinks, version 0.0.4
Filename, size File type Python version Upload date Hashes
Filename, size wikilinks-0.0.4.tar.gz (4.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page