Sha256: 7790864bb96ac95529f7246ed8f0bdd7ccd5bc97bc664f90f7ae790ab413888e

Contents?: true

Size: 373 Bytes

Versions: 11

Compression:

Stored size: 373 Bytes

Contents

#!/usr/bin/env ruby
#
# Sample script for searching page contents in a Wiki
#
require 'lib/media_wiki'

config = MediaWiki::Config.new ARGV 
config.abort("Please specify search key as article name (-a)") unless config.article

mw = MediaWiki::Gateway.new(config.url, { :loglevel => Logger::DEBUG } )
mw.login(config.user, config.pw)
puts mw.search(config.article, nil, 50)

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
mediawiki-gateway-0.4.3 script/search_content.rb
mediawiki-gateway-0.4.2 script/search_content.rb
mediawiki-gateway-0.4.1 script/search_content.rb
mediawiki-gateway-0.3.8 script/search_content.rb
mediawiki-gateway-0.3.7 script/search_content.rb
mediawiki-gateway-0.3.6 script/search_content.rb
mediawiki-gateway-0.3.5 script/search_content.rb
mediawiki-gateway-0.3.4 script/search_content.rb
mediawiki-gateway-0.3.3 script/search_content.rb
mediawiki-gateway-0.3.2 script/search_content.rb
mediawiki-gateway-0.3.1 script/search_content.rb