Questions tagged [wikipedia]

Consider the tags wikipedia-api (or the more general mediawiki-api) and mediawiki. Questions should be related to programming.

Source: Wikipedia

Wikipedia, the free encyclopedia, is a free web-based encyclopedia project written and maintained by people all over the world and is one of the most visited websites in the world(1,2). Consider also the tags,

  • if your question has to do with the use of the API on Wikipedia
  • if your question has to do with the use of the API on general Mediawiki sites
  • if your question has to do with the MediaWiki software.
1766 questions
0
votes
1 answer

Is there anyway I can get simple HTML of a page but with images and links?

With this query: http://en.wikipedia.org/w/api.php?format=xml&action=query&prop=extracts&titles=aristotle&redirects=true I get the page in its simplest HTML form. Really basic stuff. But what I really want is to also get the images and links in…
dror
  • 3,759
  • 6
  • 31
  • 45
0
votes
1 answer

Wikipedia API: Get revisions by timeframe

I'm trying to figure out how to get all of the page revisions for a specified timeframe. I have created a python script which allows me to get the last 100 revisions, but I don't see anything that allows me to specify a timeframe. I do see the…
thefreeline
  • 621
  • 1
  • 12
  • 26
0
votes
1 answer

SPARQL: retrieve all the info from DBpedia from a URI

If I want to retrieve the abstract from a URI, I do the following: PREFIX dbp_owl: SELECT DISTINCT ?abstract WHERE { dbp_owl:abstract ?abstract…
Tasos
  • 7,325
  • 18
  • 83
  • 176
0
votes
1 answer

Wikipedia API to get articles belonging to a category

I would like to get a number of pages belonging to a specific category, say sports and politics. I would like to extract various sections from the pages, such as abstract, title, etc. Is there an API to do that? If not, are there any Wikipedia dumps…
abhinavkulkarni
  • 2,284
  • 4
  • 36
  • 54
0
votes
1 answer

How to extract metadata of a word from Wikipedia?

I am trying to automate hyper parameter tuning of my model classifier. Currently, the classifier spits out a probability for a given word, if its a food item or not. For…
Rahul
  • 11,129
  • 17
  • 63
  • 76
0
votes
2 answers

Wikipedia embedded in WinForms App Tutorial

Can anyone post a tutorial here on how to show a Wikipedia article in a .NET WinForms application (C# or VB)? If the article can be placed in a string it suffices, there`s no need to put it on any control. I found some information on Wikipedia's…
RHaguiuda
  • 3,207
  • 9
  • 37
  • 55
0
votes
1 answer

Prompt "Missing node v0.10 and/or higher and npm 1.4 or higher" while running wikipedia ios project

I'm trying to follow the wikipedia ios project at https://github.com/wikimedia/apps-ios-wikipedia/ and I'm having problem while running "make get-deps". I always got the prompt of "Missing node v0.10 and/or higher and npm 1.4 or higher", but I do…
Zhenyu
  • 3
  • 4
0
votes
1 answer

How do I get the pageid from a Wikipedia page?

In a Flask app, or even better just using wikipedia APIs, how can I get the pageid from a Wikipedia url? I mean from this http://en.wikipedia.org/wiki/Stack_Overflow to this http://en.wikipedia.org/wiki?curid=21721040 From the API sandbox I can…
Luca Brozzi
  • 335
  • 1
  • 3
  • 15
0
votes
2 answers

Wikipedia views to the match trading days

I have data for Wikipedia page views like this library(wikipediatrend) views <-wp_trend(page = "European debt crisis",from = "2010-01-01",to = "2014-12-31",lang = "en",friendly = TRUE,requestFrom = "wp.trend.tester at wptt.wptt",userAgent =…
Panchacookie
  • 427
  • 1
  • 6
  • 22
0
votes
0 answers

how to use dbpedia to retrieve language specific information?

I am trying to learn dbpedia, from the tutorial I read, for url such as: http://en.wikipedia.org/wiki/Johan_Christian_Fabricius dbpedia creates an url such as: http://dbpedia.org/resource/Johan_Christian_Fabricius, which I can use to lots of useful…
daxu
  • 3,514
  • 5
  • 38
  • 76
0
votes
1 answer

Beautiful Soup in Python can not recover attribute in some wikipages

It does get the coordinates for Link1, but the same code gets it for another country...why? (it worked well a year ago) link1='http://en.wikipedia.org/wiki/Ethiopia' link2='http://en.wikipedia.org/wiki/Russia' identification = { 'User-Agent' :…
0
votes
1 answer

MediaWiki API, mobileview

I am trying to get a mobile suitable version of the page with the query http://en.wikipedia.org/w/api.php?mobileformat=&noimages=&format=json&action=parse&prop=text&page=Snow. I expected that the page content would be like on the mobile version of…
0
votes
1 answer

Wikipedia read-only bot API?

I have written my own read-only bot (in Objective C) that simply does a curl of target pages every six seconds; it works fine, but takes days when I need to read thousands of pages. So I'd like to switch to a bot API to set maxlag=5 to get better…
vonlost
  • 875
  • 1
  • 7
  • 11
0
votes
1 answer

indexing wikipedia articles in SOLR around a location with given distance

What is the best way to index Wikipedia Articles (which contain Geo locations lon/lat) in a Solr Server? E.g. I have a given lon/lat Position and want to index all Wikipedia Articles around a distance of 60 kilometers. I could download the whole…
Marian Lux
  • 53
  • 8
0
votes
1 answer

Wikipedia MediaWiki API Get Template Content via URL Request

I've been going through the doc's for past few hours and simply can't seem to figure this out though probably simple. I have this…
Craig Stewart
  • 1,461
  • 2
  • 13
  • 18
1 2 3
99
100