Sawfish
Advertisement

Hi there, I'm a computer science student from Germany. I should probably be studying right now, instead of editing wikis. Whatever.


Helper scripts[]

A couple of scripts I wrote to batch upload the theme descriptions and screenshots:

You need to have curl installed in order to use them. Here's an example session:

sven@debian:~/themes$ wikia_login "Sven Schoenung"
Password:
Logging in
Done.
sven@debian:~/themes$ ls
theme_1  theme_2  theme_3
sven@debian:~/themes$ for file in *; do
> wikia_post sawfish Ugly_$file $file
> done
Opening http://sawfish.wikia.com/wiki/Ugly_theme_1
Posting theme_1 to http://sawfish.wikia.com/wiki/Ugly_theme_1
Done.
Opening http://sawfish.wikia.com/wiki/Ugly_theme_2
Posting theme_2 to http://sawfish.wikia.com/wiki/Ugly_theme_2
Done.
Opening http://sawfish.wikia.com/wiki/Ugly_theme_3
Posting theme_3 to http://sawfish.wikia.com/wiki/Ugly_theme_3
Done.
sven@debian:~/themes$ cd ../screenshots
sven@debian:~/screenshots$ ls
theme1.jpg  theme2.jpg  theme3.jpg
sven@debian:~/screenshots$ for file in *; do
> wikia_upload sawfish Screenshot_$file $file
> done
Uploading theme1.jpg to http://sawfish.wikia.com/wiki/Image:Screenshot_theme1.jpg
Done.
Uploading theme2.jpg to http://sawfish.wikia.com/wiki/Image:Screenshot_theme2.jpg
Done.
Uploading theme3.jpg to http://sawfish.wikia.com/wiki/Image:Screenshot_theme3.jpg
Done.
sven@debian:~/screenshots$

wikia_post -h:

Usage: wikia_post [OPTIONS] <wiki> <article> <file>
Options:        -m              Minor edit
                -w              Add to watchlist
                -s summary      Include summary
Advertisement