Ævar Arnfjörð Bjarmason <avarab(a)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" }
--
| ,__o
| _-\_<,
http://www.gnu.franken.de/ke/ | (*)/'(*)