Created
May 31, 2016 23:19
-
-
Save xbony2/a120674a953c00f4078adfff5d069c8f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "mediawiki-butt" | |
butt = MediaWiki::Butt.new("http://habbo.gamepedia.com") | |
butt.login("ESAEBSAD", "-REDACTED-") | |
butt.get_category_members("Category:Has furni image", 5000).each do |page| | |
page = page.tr(":", "") | |
big_file = butt.get_text("File:#{page}.png") | |
if big_file != nil && big_file != "{{Furniture Image}}" | |
butt.edit("File:#{page}.png", "{{Furniture Image}}") | |
end | |
small_file = butt.get_text("File:#{page} small.png") | |
if small_file != nil && small_file != "{{Furniture Image}}" | |
butt.edit("File:#{page} small.png", "{{Furniture Image}}") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use dis code instead :)