Skip to content

Vesihiisi/GLAM_stats

Repository files navigation

GLAM_stats

Python script to grab glamorous stats for selected categories in Wikimedia Commons.

Saves result as json, wikitable and markdown files (like this one):

institution files used % used
Riksantikvarieämbetet 185636 2247 1.21
Livrustkammaren, Skoklosters slott och Hallwylska museet 46332 1760 3.8
Nationalmuseum 5401 4609 85.34
Musikverket 4554 68 1.49
Nordiska museet 2900 531 18.31
Kungliga Biblioteket 2525 27 1.07
Statens museer för världskultur 1908 98 5.14
Statens maritima museer 1003 225 22.43
Tekniska museet 987 160 16.21
Riksarkivet 677 84 12.41
Work With Sounds (Arbetets museum) 652 43 6.6
Spårvägsmuseet 247 59 23.89
Regionarkivet 74 24 32.43
Brunnsmuseet 50 7 14.0
Internetmuseum 40 9 22.5
Riksutställningar 37 0 0.0
Stockholms stadsarkiv 7 4 57.14
Stockholms stadsmuseum 2 1 50.0

Installation

Requirements: datetime, lxml, argparse, json, requests

Usage

You need a json file with the categories you want to analyze. See se_config.json for what it needs to look like. Then you pass it to the script:

$ python3 glam_stats.py --config se_config.json

Acknowledgments

About

grab glamorous stats for selected categories

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages