Movatterモバイル変換


[0]ホーム

URL:


Keyboard Shortcuts

Thread View

  • j: Next unread message
  • k: Previous unread message
  • j a: Jump to all threads
  • j l: Jump to MailingList overview
List overview
Download

Mediawiki-apiOctober 2015

mediawiki-api@lists.wikimedia.org
  • 9 participants
  • 9 discussions
Start a nNew thread
MediaWiki API in specific usage
by Support Technique 19 Feb '26

19 Feb '26
Hello,I'm developing a Joomla 3! plugin based on mediawiki API. The goal is importing all datas (titles and description or definitions) from Wiki database to a Joomla website database. Cause the Joomla! website will be finally used as a dictionnary. Now can you tell me how to proceed, please? Unfortunately, the available tutorials on MediaWiki are not so clear on this usage situation. Thanks for answer me as soon as you can!-- Logo Internis Group <http://www.internis-group.com/> *Modeste EKAMBI*Senior Software Engineer - Internis GroupAgence experte des projets web et IT - Développement sur mesure - Développement web et mobile, d'applications et sites internetSkype: internis.groupTéléphone: 699-789-772 / 679-998-516Mail: support(a)internis-group.comBlog:http://blog.internis-group.comSite:http://www.internis-group.com <http://internis-group.com>
2 1
0 0

20 Jan '26
Hi there,I'm using the API to extract the raw wiki text from my pages, usingthe "?action=query&titles=Main_Page&export&exportnowrap" syntax. Thatworks perfectly.Now I would like to get the templates expanded out in the result, so Iuse: "?action=query&titles=Main_Page&prop=revisions&rvlimit=1&rvprop=content&rvexpandtemplates",which does the job, as expected, but it also strips out the comments.My problem is that the comments are meaningful to me (I use them tohelp process the wiki text in subsequent steps).Is there a way to expand templates with the API, but leave thecomments intact?Thanks,Kevin
4 5
0 0
Need to extract abstract of a wikipedia page
by aditya srinivas 23 Nov '23

23 Nov '23
Hello,I am writing a Java program to extract the abstract of the wikipedia pagegiven the title of the wikipedia page. I have done some research and foundout that the abstract with be in rvsection=0 So for example if I want the abstract of 'Eiffel Tower" wiki page then I amquerying using the api in the following way.http://en.wikipedia.org/w/api.php?action=query&prop=revisions&titles=Eiffel…and parse the XML data which we get and take the wikitext in the tag <revxml:space="preserve"> which represents the abstract of the wikipedia page.But this wiki text also contains the infobox data which I do not need. Iwould like to know if there is anyway in which I can remove the infobox dataand get only the wikitext related to the page's abstract Or if there is anyalternative method by which I can get the abstract of the page directly.Looking forward to your help.Thanks in AdvanceAditya Uppu
4 3
0 0
When list=allusers is used with auactiveusers, a property 'recenteditcount'is returned in the result. In bug 67301[1] it was pointed out that thisproperty is including various other logged actions, and so should really benamed something like "recentactions".Gerrit change 130093,[2] merged today, adds the "recentactions" resultproperty. "recenteditcount" is also returned for backwards compatability,but will be removed at some point during the MediaWiki 1.25 developmentcycle.Any clients using this property should be updated to use the new propertyname. The new property will be available on WMF wikis with 1.24wmf12, seehttps://www.mediawiki.org/wiki/MediaWiki_1.24/Roadmap for the schedule. [1]:https://bugzilla.wikimedia.org/show_bug.cgi?id=67301 [2]:https://gerrit.wikimedia.org/r/#/c/130093/-- Brad Jorsch (Anomie)Software EngineerWikimedia Foundation_______________________________________________Mediawiki-api-announce mailing listMediawiki-api-announce(a)lists.wikimedia.orghttps://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce
1 1
0 0
query pageID with mobilefrontend
by Luigi Assom 09 Nov '15

09 Nov '15
Hi,i'd like to extract paragraph of articles already formatted, so to apply anaccordion on the content.Is it possible to query the ID of the page like with action=mobileview?in the same way of action=query&*pageids*=7955 ??thank you,Luigi
2 1
0 0

03 Nov '15
I'm doing a research work on Wikipedia, thanks to the API, I have got mostof the data I need. But now I'm trying to assess user's reputation, andthus I need to get the deleted revisions of a user. However, API says Idon't have permission to view deleted revision information.I really need this data, please help me.Thanks a lot!-- Zhang Shiyue*Tel*: +86 18801167900*E-mail*: byryuer(a)gmail.com, yuer3677(a)163.comState Key Laboratory of Networking and Switching TechnologyNo.10 Xitucheng Road, Haidian DistrictBeijing University of Posts and TelecommunicationsBeijing, China.
7 8
0 0
Hi to all.I'm trying to do an exercise from FreeCodeCamp (http://freecodecamp.com/challenges/zipline-build-a-wikipedia-viewer) and I'm using, for now, this query (link to the API Sandbox):https://en.wikipedia.org/wiki/Special:ApiSandbox#action=query&list=search&f…I get something like this:... "query": { "pages": { "53307": { "pageid": 53307, "ns": 0, "title": "Lepidoptera", "index": 1 }, "31500598": { "pageid": 31500598, "ns": 0, "title": "List of Lepidoptera of Metropolitan France", "index": 2 }, "8279262": { "pageid": 8279262, "ns": 0, "title": "List of Lepidoptera that feed on Ipomoea", "index": 10 }, ... }, ..., "search": [ { "ns": 0, "title": "Lepidoptera", "snippet": "The <span class=\"searchmatch\">Lepidoptera</span> (/\u02ccl\u025bp\u0268\u02c8d\u0252pt\u0259r\u0259/ lep-i-DOP-t\u0259r-\u0259) is an order of insects that includes moths and butterflies (both called lepidopterans). 180,000 species", "titlesnippet": "<span class=\"searchmatch\">Lepidoptera</span>" }, { "ns": 0, "title": "List of Lepidoptera of Metropolitan France", "snippet": "<span class=\"searchmatch\">Lepidoptera</span> of France consist of both the butterflies and moths recorded from Metropolitan France. According to a recent estimate, there are a total of", "titlesnippet": "List of <span class=\"searchmatch\">Lepidoptera</span> of Metropolitan France" }, { "ns": 0, "title": "Macroglossinae (Lepidoptera)", "snippet": "The Macroglossinae are a sub-family of Sphingidae moths in the order <span class=\"searchmatch\">Lepidoptera</span>. The subfamily is divided into three tribes: Dilophonotini, Macroglossini", "titlesnippet": "Macroglossinae (<span class=\"searchmatch\">Lepidoptera</span>)" }, ... ] ...Well... My doubt is: what thing exactly refers to the «index» parameter in «pages» objects? At first instance, I believed it was the index of the same page in the «search» array of objects. That seems logic. But, when using that, sometimes certain indexes simply don't match (they pair «pageid» from one page with «titlesnippet», «snippet», etc from another page). So, I don't know if that «index» parameter is, in fact, about some other thing or if, instead, there is a bug/problem with the API in this matter. And, of course, I know that array index order starts at 0. And already searched about this in the wiki, and found nothing.If anybody can enlighten me about this, I will be very grateful :). Thanks in advance for reading me :).And also my apologies in advance, just in case I commited some mistake here: this is my first time writing to a mailing list.
2 1
0 0
how to get a user's info by his id?
by shiyue zhang 05 Oct '15

05 Oct '15
Hello, I want to get a user's contributions by his id, but API can onlyquery it by user name. I need help. Thanks.
2 5
0 0
Hello,in an effort to standardize all post parameters in the REST v1 API to usesnake_case names, we have deprecated the bodyOnly flag in the wikitext toHTML transform end point [1]. Instead, clients should use body_only, asmentioned in the documentation.We plan to remove support for the old form by the end of November.Thanks,Gabriel[1]:https://en.wikipedia.org/api/rest_v1/?doc#!/Transforms/post_transform_wikit…
1 0
0 0
Results per page:

[8]ページ先頭

©2009-2026 Movatter.jp