mediawiki-api

Retrieving image license and author information in wiki commons

☆樱花仙子☆ 提交于 2019-12-04 00:42:47
I am trying to use the wikimedia API for wiki commons at: http://commons.wikimedia.org/w/api.php It seems like the commons API is very immature and the part at their document that mentions the possibility to retrieve license and author information is empty. Is there anyway I can retrieve the paragraph that contains the information about the licensing using the API? (For example, the paragraph under the title "Licensing" at this page ). Of course I can download the whole page and try to parse it, but what are APIs for? Philippe Green Late answer but you can request the "extmetadata" data with

Using MediaWiki to pull text from a Wikia page but it comes back in a big mess is there a better way I could do this to pull text from each section?

大兔子大兔子 提交于 2019-12-03 15:40:45
I am developing an Android app that pulls information from a Wikia page and displays it in the app. I currently am pulling all Categories to navigate and have my app set up to display the page in a WebView but I would like to just pull the info and format myself instead of cheapening it by passing to WebView. What I am using to get the text is: http://scottlandminecraft.wikia.com/api.php?format=xml&action=query&titles=ZackScott&prop=revisions&rvprop=content My problem is the text comes back in a big clump, does anyone have any ideas as to how to get this more formatted so I could parse from

How can I use the Wiktionary API for getting pronunciation data? [closed]

女生的网名这么多〃 提交于 2019-12-03 12:45:50
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. I was looking for a way to get the pronunciation of any given word by querying an API of some sort. As Wiktionary comes in handy to find pronunciations of words I was trying to use their API, but how do I get the pronunciation of a specific word? It seems their API only allows getting the entire Wiki article. Wiktionary doesn't have an API of its own. MediaWiki, the software the Wiktionary runs on does have an API but it

How to download images programmatically from Wikimedia Commons without registering for a Bot account?

那年仲夏 提交于 2019-12-03 12:27:55
问题 It seems like the only way to get approval for a Bot account is if it adds to or edits information already on Wikimedia. If you try to download any images, without a bot account, using some of the api libraries out there you get error messages instead of the images. Seems like they block anyone not coming in from a browser? Anyone else have any experience with this? Am I missing something here? 回答1: Try explaining exactly what you want to do? And what you've tried? What error message did you

How to group wikipedia categories in python?

北城以北 提交于 2019-12-03 12:15:50
问题 For each concept of my dataset I have stored the corresponding wikipedia categories. For example, consider the following 5 concepts and their corresponding wikipedia categories. hypertriglyceridemia: ['Category:Lipid metabolism disorders', 'Category:Medical conditions related to obesity'] enzyme inhibitor: ['Category:Enzyme inhibitors', 'Category:Medicinal chemistry', 'Category:Metabolism'] bypass surgery: ['Category:Surgery stubs', 'Category:Surgical procedures and techniques'] perth: [

wikionary API - meaning of words

为君一笑 提交于 2019-12-03 09:59:31
问题 I would like get meaning of selected word using wikionary API. Content retrieve data should be the same as is presented in "Word of the day", only the basic meaning without etympology, Synonyms etc.. for example "postiche n Any item of false hair worn on the head or face, such as a false beard or wig." I tried use documentation but i can find similar example, can anybody help with this problem? 回答1: Although MediaWiki has an API ( api.php ), it might be easiest for your purposes to just use

Wikipedia list=search REST API: how to retrieve also Url of matching articles

為{幸葍}努か 提交于 2019-12-03 06:17:18
I'm studying Wikipedia REST API but I'm not able to find the right option to get also URLs for a search query. this is the URL of the request: http://it.wikipedia.org/w/api.php?action=query&list=search&srsearch=calvino&format=xml&srprop=snippet this request outputs only the Title and the Snippet but no URLs for articles. I've checked wikipedia API documentation for the list=search query but seems there is no option to get also URLs. Best Regards, Fabio Buda You can form the URL of the article easily by yourself from the title. For the Italian Wikipedia, it's http://it.wikipedia.org/wiki/

Wikipedia api fulltext search to return articles with title, snippet and image

百般思念 提交于 2019-12-03 04:32:51
问题 I've been looking for a way to query the wikipedia api based on a search string for a list of articles with the following properties: Title Snippet/Description One or more images related to the article. I also have to make the query using jsonp. I've tried using the list=search parameter http://en.wikipedia.org/w/api.php?action=query&list=search&prop=images&format=json&srsearch=test&srnamespace=0&srprop=snippet&srlimit=10&imlimit=1 But it seems to ignore the prop=images, I've also tried

Searching Wikipedia using API

守給你的承諾、 提交于 2019-12-03 03:10:05
问题 I want to search Wikipedia using the query action. I am using this url: http://en.wikipedia.org/w/api.php?action=query&format=json&list=search&srsearch=apple That works but I want to get into the first result of the search. How can I do that? Note: That url works fine when there is only one result.. I just need the title and some short description. 回答1: I don't think you can do both in one query. 1. To get the first result, use the Opensearch API. https://en.wikipedia.org/w/api.php?action

How to download images programatically from Wikimedia Commons without registering for a Bot account?

主宰稳场 提交于 2019-12-03 02:00:32
It seems like the only way to get approval for a Bot account is if it adds to or edits information already on Wikimedia. If you try to download any images, without a bot account, using some of the api libraries out there you get error messages instead of the images. Seems like they block anyone not coming in from a browser? Anyone else have any experience with this? Am I missing something here? Try explaining exactly what you want to do? And what you've tried? What error message did you get? You're not very clear... What libraries have you tried? If you're not aggressive, there are no