Sha256: cbda043803a484a657b560a08fc0ec131841ba511b83a8cf5588fa48ab1ab11e

Contents?: true

Size: 279 Bytes

Versions: 8

Compression:

Stored size: 279 Bytes

Contents

#!/usr/bin/env ruby
#
# Export MediaWiki pages as XML
#
require './lib/media_wiki'

if ARGV.length < 3
  raise "Syntax: export_xml.rb <host> <user> <password> [page page page...]"
end

mw = MediaWiki::Gateway.new(ARGV[0])
mw.login(ARGV[1], ARGV[2])
print mw.export(ARGV[3..-1])

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mediawiki-gateway-0.6.2 samples/export_xml.rb
mediawiki-gateway-0.6.1 samples/export_xml.rb
mediawiki-gateway-0.6.0 samples/export_xml.rb
mediawiki-gateway-0.5.2 samples/export_xml.rb
mediawiki-gateway-0.5.1 script/export_xml.rb
mediawiki-gateway-0.5.0 script/export_xml.rb
mediawiki-gateway-0.4.5 script/export_xml.rb
mediawiki-gateway-0.4.4 script/export_xml.rb