There's a PHP class out there
http://freshmeat.net/projects/httpclass/?branch_id=15372&release_id=1696...
that can, as of this release, POST-upload files. Sounds like a good way to mass-upload an image collection (GFDL or PD, of course;-)
Magnus
pywikipediabot can do it also IIRC
On Thu, 12 Aug 2004 14:03:24 +0200, Magnus Manske magnus.manske@web.de wrote:
There's a PHP class out there
http://freshmeat.net/projects/httpclass/?branch_id=15372&release_id=1696...
that can, as of this release, POST-upload files. Sounds like a good way to mass-upload an image collection (GFDL or PD, of course;-)
Magnus _______________________________________________ Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
Ævar Arnfjörð Bjarmason avarab@gmail.com writes:
pywikipediabot can do it also IIRC
Yes, I've enhanced it using an AWK script:
#!/bin/awk -f # usage: upload.awk JOBFILE # # a JOBFILE test records looks as follows: # # /home/ke/Bilder/2004-05-01/Kraftshof_wehrkirchhof_gruftkapelle_wseite_v_w.jpg # ;Beschreibung # : [[Kraftshof]], Stadtteil von [[Nürnberg]], Wehrkirchhof, Kress'sche Gruftkapelle, Westseite, von W (2004-05-01). # ;Quelle # : Fotographie 2004-05-01 # ;Fotograph # : --~~~ # ;Copyright Status # : [[GNU Freie Dokumentationslizenz]] # # -=- # /path/to/image/file_1.jpg # multiline description # multiline description # multiline description # -=-
BEGIN {start = 1}
/-=-/ { # record end marker found command = "python upload.py -keep -desc-keep " name " "" text """ system (command) start = 1; text = "" next }
start == 1 { name = $0 # in case the record starts with an empty line name != "" && start = 0 next }
# collect all text lines { text = text $0 "\n" }
It would need writing, but all the 'hard work' has already been done - there is a library to do the actual uploading, so all one would have to do is get a loop over it and define the text to go with the image. Being especially written for the Mediawiki software probably makes it better usable than any external program, since it 'knows' what values to give for the various data that have to be sent together with the upload.
Andre Engels
On Thu, 12 Aug 2004 14:15:11 +0200 Ævar Arnfjörð Bjarmason avarab@gmail.com wrote:
pywikipediabot can do it also IIRC
On Thu, 12 Aug 2004 14:03:24 +0200, Magnus Manske magnus.manske@web.de wrote:
There's a PHP class out there
http://freshmeat.net/projects/httpclass/?branch_id=15372&release_id=1696...
that can, as of this release, POST-upload files. Sounds like a good way to mass-upload an image collection (GFDL or PD, of course;-)
Magnus _______________________________________________ Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
wikitech-l@lists.wikimedia.org