neingeist
/
neinomaten
Archived
1
0
Fork 0

auch nach stadtwiki-links gucken

master
neingeist 19 years ago
parent 6a19d4c6ec
commit d7f5e96748

@ -9,7 +9,7 @@ require 'mediawiki/dotfile'
@wiki.allpages.each do |title| @wiki.allpages.each do |title|
MediaWiki::logger.debug("Checking #{title}") MediaWiki::logger.debug("Checking #{title}")
text = @wiki.article(title).text text = @wiki.article(title).text
s = text.scan(/^.*wikipedia.org.*$/s) s = text.scan(/^.*(?:wikipedia.org|ka.stadtwiki.net).*$/s)
if s != [] if s != []
@body += "* [[#{title}]]\n" @body += "* [[#{title}]]\n"
s.each do |m| s.each do |m|