On Sat, Sep 20, 2008 at 6:50 PM, Rich Morin <rdm(a)cfcl.com> wrote:
> I need to load up a few hundred MW pages with text and images.
>
> Looking at http://en.wikipedia.org/w/api.php, I find several
> tools for getting information about images, but nothing for
> uploading them:
>
> * prop=images (im) *
> * prop=imageinfo (ii) *
> * list=allimages (ai) *
> * list=imageusage (iu) *
>
> Am I missing something?
>
>
> More generally, are there any tools other than pywikipediabot
> and the MW API that I should look into?
>
> -r
> --
> http://www.cfcl.com/rdm Rich Morin
> http://www.cfcl.com/rdm/resume rdm(a)cfcl.com
> http://www.cfcl.com/rdm/weblog +1 650-873-7841
>
> Technical editing and writing, programming, and web development
>
> _______________________________________________
> Mediawiki-api mailing list
> Mediawiki-api(a)lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
>
Uploading is something that I am still working on. I have made some
necessary changes to the backend to make a suitable API module, but it
still needs some work on the regular frontend. I want to have that
fixed first before I continue on the API module. Unfortunately I
currently don't really have time for it.
Bryan
Hello
Good morning
I could help as follows: I need to do a query to the database of mediawiki
pagelinks exactly to the table and show results in a wiki page as a menu.
Thanks for your help
Greetings
Jaime Gonzalez
Hello Mailinglist,
The JSON-Output in the Opensearch-Modul has a few mistakes.
First, a JSON-String have to start with an '{' and ends with '}'
but <http://de.wikipedia.org/w/api.php?action=opensearch&search=Te>
gives me
["Te",["TE","Te","Te 2\/2","Te Ana-au Caves","Te Anau","Te Aroha","Te
Atairangikaahu","Te Atua Mou E","Te Aupouri","Te Aup\u014duri"]]
also, there are not so much informations as in the xml-output.
I want to propose a better output-formating, that is more confirm (all
other json-outputs are in this form):
<http://dict.leo.org/ende?lp=ende&p=thMx..&search=to>{
"opensearch" : {
"query":"Te",
"items" : [
{
"title": "TE",
"description": "Te 2/2 ist eine Sammelbezeichnung für
zweiachsige, elektrisch betriebene Rangiertraktoren in der Schweiz.",
"url": "http://de.wikipedia.org/wiki/Te_2/2",
"image":
"http://upload.wikimedia.org/wikipedia/commons/thumb/1/1c/Filisur_RhB_71.JPG…"
} ,
{
.... (the same for the next result) ...
},
.... (and all results) ...
]
}
}
Is it possible to change that in the api-module?
cu,
Michael Stummvoll
Hi,
I´m using the action=edit and the response I get from the server seems ok
when it returns a code error, like:
- if the query doesn´t identify the user (code: cantcreate-anon)
- if it is trying to create a page that already exists and the createonly
parameter is set (code: articleexists)
But when the request seems to be all right I get an Internal Server Error
(Http code 500). The parameters I send are the following:
- title
- section
- text
- token
- summary
- minor
- createonly
- sessionid
- lguserid
- lgtoken
Regards,
Elena Moreno