uploading pages and images?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

uploading pages and images?

Rich Morin
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     [hidden email]
http://www.cfcl.com/rdm/weblog     +1 650-873-7841

Technical editing and writing, programming, and web development

_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Reply | Threaded
Open this post in threaded view
|

Re: uploading pages and images?

Roan Kattouw
Rich Morin schreef:

> 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?
>  
In a way, yes. You can export wiki pages (not sure about images, though)
to an XML file using Special:Export, and import them in another wiki
using Special:Import. You need the import right (sysops only by default)
to use Special:Import, though.

Roan Kattouw (Catrope)

_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Reply | Threaded
Open this post in threaded view
|

Re: uploading pages and images?

Rich Morin
At 20:29 +0200 9/21/08, Roan Kattouw wrote:
> Rich Morin schreef:
>> Am I missing something?
>>
> In a way, yes. You can export wiki pages ...

Thanks for the pointer, but looks like it still requires me
to manually import 200+ pages.

-r
--
http://www.cfcl.com/rdm            Rich Morin
http://www.cfcl.com/rdm/resume     [hidden email]
http://www.cfcl.com/rdm/weblog     +1 650-873-7841

Technical editing and writing, programming, and web development

_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Reply | Threaded
Open this post in threaded view
|

Re: uploading pages and images?

Roan Kattouw
Rich Morin schreef:

> At 20:29 +0200 9/21/08, Roan Kattouw wrote:
>  
>> Rich Morin schreef:
>>    
>>> Am I missing something?
>>>
>>>      
>> In a way, yes. You can export wiki pages ...
>>    
>
> Thanks for the pointer, but looks like it still requires me
> to manually import 200+ pages.
You can export a virtually unlimited* number of pages into a single .xml
file, and import it in one go as well.

Roan Kattouw (Catrope)

* In practice, there are limits on file size and script execution time
(typically 30 seconds), of course, so you won't be able to
import/export, say, a million pages

_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api