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
0 answers

NodeJS & Wikipedia API: different result from different hosts

I have a project using NodeJS. It grabs data from the Wikipedia API, this works fine in ASCII languages but I recently added unicode support. Here is an example query: https://zh.wikipedia.org/w/api.php?action=opensearch&search=笔记本电脑 I use…
Christiaan Maks
  • 3,248
  • 3
  • 23
  • 27
0
votes
1 answer

Perform Fuzzy Search on Wikipedia

I'm trying to retrieve the page of the author Agatha Christie from Wikipedia exploiting its API. Wikipedia seems to perform this work quite well: From https://en.wikipedia.org/wiki/Main_Page I search Agatha Christie and I find her. By the API this…
donnadulcinea
  • 1,854
  • 2
  • 25
  • 37
0
votes
1 answer

How to parse information from a given Wikipedia article

So, I was making this website that takes date from the user and returns all the historical events that happened on this day. The natural choice was to use information from the Wikipedia. Consider for example this…
Boykodev
  • 850
  • 1
  • 10
  • 23
0
votes
1 answer

Cleaning text with beautiful soup

Okay so I'm working on processing an html file using beautiful soup and I have done the following: url = "https://en.wikipedia.org/wiki/"+'Category:American_football' raw = urlopen(url).read() soup=BeautifulSoup(raw) pages = soup.find("div" , { "id"…
jdv12
  • 171
  • 4
  • 17
0
votes
1 answer

Connection timed out only for wikmedia api on server but works on local

Following piece of code was working for the last three years, but all of a sudden it throws connection timed out only in server, but works as intended in localhost. Any comments ? public String getWikiContent(String query) { StringBuilder…
0
votes
1 answer

How to retrieve all wikipedia Infobox templates

Here lists all infobox templates in wikipedia. https://en.wikipedia.org/wiki/Wikipedia:List_of_infoboxes Is there a way or method that can retrieve all the inforbox templates listed in the page? I want to use each of the infobx template to retrieve…
marlon
  • 6,029
  • 8
  • 42
  • 76
0
votes
1 answer

Wikipedia API: articles rating

is there any wikipedia API to help in rate their topics, to find if it contain nude or sexual content or not, like movies ? (proper for kids or not) I did alot of search, but can't find something like this thanks,
mwafi
  • 3,946
  • 8
  • 56
  • 83
0
votes
2 answers

Why is this returning a NoneType?

I'm trying to scrape info off of Wikipedia using the function below, but I'm running into an Attribute Error because a function call is returning None. Can someone please try and explain why this is returning None? import wikipedia as wp import…
Try431
  • 217
  • 6
  • 16
0
votes
2 answers

dbpedia sparql movie query sql

Hi I'm trying to learn how to query DBpedia using SPARQL. I can't find any website/source that shows me how do this and I'm finding it difficult to learn how to use all the properties (like the ones available at…
M El-Falou
  • 11
  • 1
0
votes
1 answer

Extracting Wikipedia Articles: Redirects?

I'm working on something that shows the raw data on a wikipedia page. I've got it working really well, but I've run into an issue with redirects. Sometimes when the app goes to the page, it says, "This is a redirect from a title that is fully…
BlueSpud
  • 1,555
  • 3
  • 19
  • 44
0
votes
1 answer

Actionscript/ Wikipedia API

I'm working on Actionscript project , I need to call Wikipedia API's , but Wikipedia doesn't contain CrossDomain.xml file to enable flash access. any suggestion ! Thanks you
0
votes
0 answers

wikiprep MediaWiki::DumpFile namespace

I am trying to use wikiprep with support of MediaWiki::DumpFile to parse wikipedia dump. The problem is it doesn't work. wikiprep -format composite -compress -f enwiki.xml.0001.gz Can't locate object method "namespaces" via package…
com
  • 2,606
  • 6
  • 29
  • 44
0
votes
1 answer

'HTMLParseError' when importing 'wikipedia' module in Python3

I installed the 'wikipedia' module on my Windows 7 machine with pip install wikipedia, but when I run this simple script: import wikipedia print (wikipedia.summary("Wikipedia")) I get an error that says ImportError: cannot import name…
nicholas79171
  • 1,203
  • 2
  • 15
  • 28
0
votes
1 answer

Fetch text from Wikipedia randomly

Can we fetch text from Wikipedia randomly? I do not care about the content of the text, the whole I need is to fetch random text whenever I query for the…
0
votes
1 answer

extract all "ul a" entities from html page that have a certain String in the "title"

In the style of the example on this page I'm trying to get all of the senses in which a particular name could be applied to a specific person based on the wikipedia disambiguation page. The trouble is that wikipedia pages are highly non-uniform.…
smatthewenglish
  • 2,831
  • 4
  • 36
  • 72
1 2 3
99
100