Questions tagged [wikimedia]

Wikimedia is the foundation running Wikipedia and other sites. Most sites in the Wikimedia family are built on MediaWiki.

The Wikimedia Foundation runs a number of projects, including Wikipedia, Wiktionary and Wikinews. Use this tag for questions specific to the Wikimedia family of wikis (e.g. Wikimedia settings, or custom extensions).

Consider also:

  • if your question has to do with the MediaWiki software
  • if your question has to do with template code of MediaWiki
  • if your question is specific to Wikimedia Commons
  • if your question is specific to Wikipedia
  • if your question has to do with the use of the API on Wikipedia
152 questions
1
vote
1 answer

How to get random page of specific "Portal:" using WikiMedia API

Is there any way to get random article of specific wikimedia portal using wikimedia API? For example, I need random page of Portal:Science. Does anyone know how to do this?
pbespechnyi
  • 2,251
  • 1
  • 19
  • 29
1
vote
1 answer

How to detect a section in a wikimedia page dump

I have looked around quite a bit to try and answer this question, but to no avail. I am parsing wikimedia page dumps to process certain pages (yes, I am aware of several tools to parse wikimedia page dumps, but they don't work for me as well as my…
rational
  • 55
  • 3
1
vote
3 answers

Xpath: All nodes until a node ( Wikiquote.org )

DOCUMENT: http://en.wikiquote.org/wiki/The_Matrix I'd want to get all quotes (//ul/li) of the first section (Neo's quotes). I cannot do //ul[1]/li because in some wikiquote's pages a quote is represented in this form

sparkle
  • 7,530
  • 22
  • 69
  • 131

1
vote
1 answer

How to construct full URL from Wikipedia [[File:...]] tag in wikimedia markup?

What logic does Wikipedia use to generate the full URL for images in articles, given the [[File:...]] tag in the wikimedia markup, or the infobox |image=... line? The url seems to always start with http://upload.wikimedia.org/wikipedia/commons/,…
mrjf
  • 1,117
  • 1
  • 12
  • 22
1
vote
1 answer

Getting data from wikisource.org site

I am trying to get postal codes from this site: http://pl.wikisource.org/wiki/Lista_kod%C3%B3w_pocztowych_w_Polsce My code is simple:
symfonydevpl
  • 567
  • 1
  • 6
  • 20
0
votes
2 answers

How to remove Wikipedia nested tags using Perl

I have wikimedia tags in a text file. I need to get rid of these tags from starting to ending even when nesting. I'm using Perl. I'm facing a difficulty in nested tags. I'll give two examples of these tags that I could not to remove. Example 1: {{…
Fao
  • 11
0
votes
1 answer

Advanced Excel / Visual Basics for Website Parsing

I have links to 500 Wikipedia / Wikimedia Wikis, Talk Pages and history pages in an excel document that I'd like to parse to determine things like how many of the Wikis mention "advert" or "promotional" in the Talk page, how long the average Wiki…
0
votes
1 answer

download articles from wikipedia using special export

I want to be able to download full histories of a few thousand articles from http://en.wikipedia.org/wiki/Special:Export and I am looking for a programmatic approach to automate it. I want to save result as XML. Here is my Wikipedia query. I started…
no_freedom
  • 1,963
  • 10
  • 30
  • 48
0
votes
0 answers

Get list of nouns and declension of a word from Wiktionary API

I would like to get: a list of nouns in a specific language the case declension table for a word in a slavic language. I was hoping to be able to send something like an http get request with…
Val
  • 1,548
  • 1
  • 20
  • 36
0
votes
1 answer

Finding former bot edits for a Wikipedia page using PyWikiBot

I have currently written this block of code in which the correct number of bots is returned, but upon checking with the https://xtools.wmcloud.org/articleinfo/en.wikipedia.org/Planet_of_the_Apes?botlimit=100#auto-edits page. I can see the bots with…
0
votes
0 answers

Use Wiktionary to create custom vocab lists in multiple languages (e.g. Chinese, Japanese, English)

complete REST API noob here, and first time on stackoverflow. My problem is: I currently have a long English-Japanese character vocabulary list. I am also studying Mandarin Chinese and already know Cantonese. For each entry that currently contains…
0
votes
0 answers

How can I create a Wikimedia template for
...‎

I read this page about {{Quote}} but how can I create this as a template for my own Wikimedia wiki? Where can I find the content of that page?
zeynel
  • 177
  • 1
  • 1
  • 12
0
votes
1 answer

How to search all WikiNews articles under specific category?

I'm trying to use WikiMedia API (https://www.mediawiki.org/wiki/API:Main_page) to search all articles under specific categories (https://en.wikinews.org/wiki/Category:News_articles_by_section). For instance, find the text of all news articles under…
user3070752
  • 694
  • 4
  • 23
0
votes
0 answers

How to get next page with the Wikimedia API

wikimedia exposes a REST interface: https://wikimedia.org/api/rest_v1/#/ It looks like results are limited to 5k items with pagination. In such cases, you get a next value like the following: Object { items: Array(5000) [Object, Object, Object,…
floatingpurr
  • 7,749
  • 9
  • 46
  • 106
0
votes
0 answers

Sparql: Retrieve information on all people in dbpedia with bulk query

I can fetch several metadata fields for a particular person using the following query at https://dbpedia.org/sparql: prefix dbpedia: prefix dbpedia-owl: select * { …
duhaime
  • 25,611
  • 17
  • 169
  • 224