You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
543 B
Plaintext
20 lines
543 B
Plaintext
19 years ago
|
#!/usr/bin/env ruby
|
||
|
require 'mediawikibotchecker'
|
||
|
|
||
|
if ARGV.size() != 2
|
||
|
$stderr.print($0 + " <wiki-user> <wiki-password>\n")
|
||
|
exit(1)
|
||
|
end
|
||
|
|
||
|
#----------------------------------------------------------------------------
|
||
|
|
||
|
def fasel (page, category)
|
||
|
b = WikiChecker.new("http://www.entropia.de/wiki/")
|
||
|
b.login(ARGV[0], ARGV[1])
|
||
|
body = b.category_checker(page, category)
|
||
|
b.edit("Benutzer:Neinomat/#{page}", body, "wiki ex machina")
|
||
|
end
|
||
|
|
||
|
fasel("Projekte","Kategorie:Projekte")
|
||
|
fasel("Übersicht über Vorträge", "Kategorie:Vorträge")
|