From 70e56b824b8ba95ee8c9399049b420f0e7644dbc Mon Sep 17 00:00:00 2001 From: neingeist Date: Fri, 30 Sep 2005 14:19:50 +0000 Subject: [PATCH] soviel neue funktionen!! --- mediawikibot.rb | 16 ++++++++++++++++ mediawikibotchecker.rb | 19 +++++++++++++++++++ neinomat-projekte | 18 ++++++++++++++++++ 3 files changed, 53 insertions(+) create mode 100644 mediawikibotchecker.rb create mode 100755 neinomat-projekte diff --git a/mediawikibot.rb b/mediawikibot.rb index ed9597a..b0bb949 100755 --- a/mediawikibot.rb +++ b/mediawikibot.rb @@ -179,5 +179,21 @@ class WikiBot return fields end + + def get_category_articles(category) + # FIXME: There seems to be no MediaWiki API? Let's scrape it up from + # HTML for now. + + articles = [] + + category_page = @client.get_content(@wiki + category) + category_page.scan(/
  • \n") + exit(1) +end + +#---------------------------------------------------------------------------- + +b = WikiChecker.new("http://www.entropia.de/wiki/") +b.login(ARGV[0], ARGV[1]) + +page = "Projekte" +category = "Category:Projekte" +body = b.category_checker(page, category) + +b.edit("Benutzer:Neinomat/#{page}", body, "wiki ex machina")