Skip to content

schwabmi/fontane

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Theodor Fontane on Wikipedia

Preparation

Install the Python library pageviewapi, that uses the PageView API from Wikimedia Foundation.

pip install git+https://github.com/Commonists/pageview-api.git

Download and extract Pywikibot, a Python library for interacting with Wikipedia:

wget https://tools.wmflabs.org/pywikibot/core_stable.tar.gz
tar xzf core_stable.tar.gz

“Theodor Fontane” articles in different Wikipedia language editions

Extract data from Wikipedia using wiki.py:

python3 core_stable/pwb.py wiki.py --languages "Theodor Fontane" > interwiki.tsv

Plot some of the columns using interwiki.gpi:

gnuplot interwiki.gpi

text length (wiki markup)

interwiki_textlen.png

number of contributors

interwiki_contributors.png

number of revisions

interwiki_revisions.png

number of backlinks

interwiki_backlinks.png

date of the first version of a page

interwiki_firstrev.png

Articles of Fontane’s works (in the German Wikipedia)

Starting point is the Wikipedia category https://de.wikipedia.org/wiki/Kategorie:Werk_von_Theodor_Fontane.

Extract data from Wikipedia using wiki.py:

python3 core_stable/pwb.py wiki.py --category "Kategorie:Werk_von_Theodor_Fontane" > works.tsv

Plot some of the columns using works.gpi:

gnuplot works.gpi

text length (wiki markup)

works_textlen.png

number of contributors

works_contributors.png

number of revisions

works_revisions.png

number of backlinks

works_backlinks.png

number of language editions

works_languages.png

date of the first version of a page

works_firstrev.png

Contemporaries of Fontane

Download the result of the SPARQL query https://w.wiki/48T as TSV file contemporaries_wikidata.tsv and then extract data from Wikipedia using wiki.py:

python3 core_stable/pwb.py wiki.py --file contemporaries_wikidata.tsv > contemporaries.tsv

Plot some of the columns using contemporaries.gpi:

gnuplot contemporaries.gpi

text length (wiki markup)

contemporaries_textlen.png

number of contributors

contemporaries_contributors.png

number of revisions

contemporaries_revisions.png

number of backlinks

contemporaries_backlinks.png

number of language editions

contemporaries_languages.png

date of the first version of a page

contemporaries_firstrev.png

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%