Bryan Tong Minh | 2 Apr 10:46 2008
Picon

Re: Using the API to search the MediaWiki

On Tue, Apr 1, 2008 at 6:58 PM, Aurelien Dusween <ideozen@...> wrote:
>
>  Hi,
>
>  I am trying to send queries to my installation of MediaWiki outside of MediaWiki.
>  I want to build a test application that searches a major search engine but also the MediaWiki install.
>
>  I use the API with the list=search call but I don't get a lot of information out of it.
>  Example of call and result:
>
>  - Call
>  http://127.0.0.1/wiki/api.php?action=query&list=search&srsearch=success&srwhat=text&srnamespace=0|1|2|3|4|5&format=xml
>
>  - Result
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>  Is there any way I could get a teaser for each page (like the teasers that you get when you actually search on
the wiki)?
(Continue reading)

Manuel Schölling | 3 Apr 02:41 2008
Picon
Picon

Intent of mediawiki api?

Hi guys,

I'm sorry to bother you with this question but I could not find any 
answer on the mediawiki website.
Is this api intended to be an interface just for manipulating the 
wikipedia/wiktionary/wiki* content or is this api also for software 
developers to include wiki* content in their software?
(I don't want to abuse the api)

Thanks for your answers

Cheers
Manuel
Bryan Tong Minh | 3 Apr 10:07 2008
Picon

Re: Intent of mediawiki api?

On Thu, Apr 3, 2008 at 1:41 AM, Manuel Schölling
<manuel.schoelling@...> wrote:
> Hi guys,
>
>  I'm sorry to bother you with this question but I could not find any
>  answer on the mediawiki website.
>  Is this api intended to be an interface just for manipulating the
>  wikipedia/wiktionary/wiki* content or is this api also for software
>  developers to include wiki* content in their software?
>  (I don't want to abuse the api)
>
>  Thanks for your answers
>
>  Cheers
>  Manuel
>
>  _______________________________________________
>  Mediawiki-api mailing list
>  Mediawiki-api@...
>  https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
>

You can use the api to include wiki content in your software. You
should however make sure that you follow the wiki's license when
reusing content.

However if you have plans to use full scale mirror, you might want to
contact the Wikimedia admins. Also note that in case you don't need
dynamic content, you can also download static dumps from
<http://download.wikimedia.org/backup-index.html>.
(Continue reading)

Platonides | 3 Apr 22:04 2008
Picon

Re: Intent of mediawiki api?

Bryan Tong Minh wrote:
> You can use the api to include wiki content in your software. You
> should however make sure that you follow the wiki's license when
> reusing content.
> 
> However if you have plans to use full scale mirror, you might want to
> contact the Wikimedia admins. 

You might want = If you're making trouble to the servers you will be 
blocked.
It's better to use the dumps when posible 
http://download.wikimedia.org/backup-index.html

There's a paying feed for getting the articles when they're updated.
MinuteElectron | 4 Apr 01:04 2008

External links query

Hello,

Earlier today I attempted to retrieve a full list of all external URLs
in my wiki, unfortunately I was unable to do so as the list would not be
output (return an error) if I specified a generic euquery such as "*",
nor would it output if I specified no query at all.

Does anyone know if it is possible to retrieve a list of all URLs in a
wiki via the API, if not would it be likely to be implemented?

MinuteElectron.
Bryan Tong Minh | 4 Apr 13:20 2008
Picon

Re: External links query

On Fri, Apr 4, 2008 at 1:04 AM, MinuteElectron
<minuteelectron@...> wrote:
> Hello,
>
>  Earlier today I attempted to retrieve a full list of all external URLs
>  in my wiki, unfortunately I was unable to do so as the list would not be
>  output (return an error) if I specified a generic euquery such as "*",
>  nor would it output if I specified no query at all.
>
>  Does anyone know if it is possible to retrieve a list of all URLs in a
>  wiki via the API, if not would it be likely to be implemented?
>
>  MinuteElectron.
>
>  _______________________________________________
>  Mediawiki-api mailing list
>  Mediawiki-api@...
>  https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
>
It looks indexed, so I see no reason not to to.

Bryan
Roan Kattouw | 4 Apr 13:22 2008
Picon

Re: External links query

Bryan Tong Minh schreef:
> On Fri, Apr 4, 2008 at 1:04 AM, MinuteElectron
> <minuteelectron@...> wrote:
>   
>> Hello,
>>
>>  Earlier today I attempted to retrieve a full list of all external URLs
>>  in my wiki, unfortunately I was unable to do so as the list would not be
>>  output (return an error) if I specified a generic euquery such as "*",
>>  nor would it output if I specified no query at all.
>>
>>  Does anyone know if it is possible to retrieve a list of all URLs in a
>>  wiki via the API, if not would it be likely to be implemented?
>>
>>  MinuteElectron.
>>
>>  _______________________________________________
>>  Mediawiki-api mailing list
>>  Mediawiki-api@...
>>  https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
>>
>>     
> It looks indexed, so I see no reason not to to.
Done in r32722.

Roan Kattouw (Catrope)
MinuteElectron | 4 Apr 13:35 2008

Re: External links query

Roan Kattouw wrote:
> Done in r32722.
Thank you, much appreciated.

MinuteElectron.
Nicolas Vervelle | 5 Apr 20:53 2008
Picon

Quick questions about API

Hi,

Thanks again for the API, very practical for tools working on Wikipedia.

Do you have an ETA for action=edit being available on Wikipedia servers ?
Is there a way to test tools with the Edit action, since it has been 
developed ?
I have started modifying my tool and I like to test it with the new Edit 
API.

Is it normal that the result is not formatted when query API with an 
unknown action (like action=edit for the moment) ?
Could the API return a normal <error> result instead of just 
"unknown_action: Unrecognised value for parameter 'action'" ?

Thanks,
Nico
Bryan Tong Minh | 5 Apr 21:39 2008
Picon

Re: Quick questions about API

On Sat, Apr 5, 2008 at 8:53 PM, Nicolas Vervelle
<nvervelle@...> wrote:
>  Is it normal that the result is not formatted when query API with an
>  unknown action (like action=edit for the moment) ?
>  Could the API return a normal <error> result instead of just
>  "unknown_action: Unrecognised value for parameter 'action'" ?
>
I was busy fixing that while you wrote this :P Fixed in r32824.

Bryan

Gmane