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(/