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