Repository for handy wikipedia scripts
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
couchdb_design
modernisme
LICENSE
README.md
bulkupload-couchdb.pl
category-report-status.json
category-report-status.pl
extendedTopUsers.json
extendedTopUsers.pl
filterdir.sh
subsTemplatesFromOther.json
subsTemplatesFromOther.pl
wikidata-dumpjson-checkNonEqualLang.pl

README.md

wikipedia-scripts

Repository for handy wikipedia scripts

List and situation from categories

category-report-status.pl
  • Extract all pages from category(ies)
    • Handle recursively subcategories
  • For every page, retrieve data:
  • Store in hash / JSON
    • Generate MW table (which can be sorted)

Replace one template from one Wikipedia to another one Wikipedia

subsTemplatesFromOther.pl

List discrepancies between label and title in Wikidata

wikidata-dumpjson-checkNonEqualLang.pl

Upload in CouchDB

bulkupload-couchdb.pl

CouchDB index

function( doc ) {
	if ( doc.hasOwnProperty("langs") ) {
		for ( var lang in doc["langs"] ) {
			if ( doc["langs"].hasOwnProperty(lang) ) {
				if ( doc["langs"][lang].hasOwnProperty("detail") ) {
					var label = doc["langs"][lang]["label"];
					var title = doc["langs"][lang]["title"];
					var detail = doc["langs"][lang]["detail"];
					emit( [ lang, detail ], [ label, title ] );
				}
			}
		}
	}
}