Difference between revisions of "Mvs"
From Christoph's Personal Wiki
(→See also) |
|||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | |||
'''mvs''' is a [[:Category:Linux Command Line Tools|command line]] Mediawiki client. | '''mvs''' is a [[:Category:Linux Command Line Tools|command line]] Mediawiki client. | ||
== Basic usage == | == Basic usage == | ||
* <tt>login</tt> — Login to wiki: | * <tt>login</tt> — Login to wiki: | ||
− | % | + | % mvs login -d ''www.yoururl.com'' -u ''Bot'' -p "''your_password''" -w "''/index.php''" |
* <tt>up/update</tt> — Fetch one or more working files: | * <tt>up/update</tt> — Fetch one or more working files: | ||
− | % | + | % mvs update ''Foo.wiki'' ''Bar.wiki'' |
* <tt>preview</tt> — Preview changes (does not commit anything): | * <tt>preview</tt> — Preview changes (does not commit anything): | ||
− | % | + | % mvs preview -m "''commit message''" ''Foo.wiki'' |
* <tt>com/commit</tt> — Commit (upload) changes: | * <tt>com/commit</tt> — Commit (upload) changes: | ||
− | % | + | % mvs commit -m "''commit message''" ''Foo.wiki'' |
+ | |||
+ | ===Notes=== | ||
+ | It is important the the files you 'commit' are in UTF-8 format. It easy to run a simple utility over all of your <code>.wiki</code> files: | ||
+ | for i in *.wiki; do iconv -f ISO-8859-1 -t UTF-8 "$i" -o "converted/$i"; done | ||
+ | |||
+ | ==See also== | ||
+ | *[http://meta.wikimedia.org/wiki/Using_the_python_wikipediabot Using the python wikipediabot] | ||
+ | *[http://search.cpan.org/~esummers/WWW-Wikipedia-1.9/ WWW::Wikipedia] — automated interface to the Wikipedia. | ||
+ | *[http://en.wikipedia.org/wiki/User:Yurik/Query_API Wikipedia Query API] | ||
+ | *[http://meta.wikimedia.org/wiki/Xml2sql xml2sql] — converter tool for xml dump. | ||
+ | *[http://wikipediafs.sourceforge.net/ WikipediaFS] — view and edit Wikipedia articles as if they were real files. | ||
+ | *[http://meta.wikimedia.org/wiki/Help:External_editors wikipedia:External editors] | ||
+ | *[http://www.cs.technion.ac.il/~gabr/resources/code/wikiprep WikiPrep] — a [[Perl]] script for preprocessing Wikipedia XML dumps. | ||
== External links == | == External links == | ||
* [http://search.cpan.org/~markj/WWW-Mediawiki-Client-0.31/bin/mvs CPAN.org - mvs] | * [http://search.cpan.org/~markj/WWW-Mediawiki-Client-0.31/bin/mvs CPAN.org - mvs] | ||
− | |||
[[Category:Linux Command Line Tools]] | [[Category:Linux Command Line Tools]] |
Latest revision as of 04:19, 31 March 2008
mvs is a command line Mediawiki client.
Contents
Basic usage
- login — Login to wiki:
% mvs login -d www.yoururl.com -u Bot -p "your_password" -w "/index.php"
- up/update — Fetch one or more working files:
% mvs update Foo.wiki Bar.wiki
- preview — Preview changes (does not commit anything):
% mvs preview -m "commit message" Foo.wiki
- com/commit — Commit (upload) changes:
% mvs commit -m "commit message" Foo.wiki
Notes
It is important the the files you 'commit' are in UTF-8 format. It easy to run a simple utility over all of your .wiki
files:
for i in *.wiki; do iconv -f ISO-8859-1 -t UTF-8 "$i" -o "converted/$i"; done
See also
- Using the python wikipediabot
- WWW::Wikipedia — automated interface to the Wikipedia.
- Wikipedia Query API
- xml2sql — converter tool for xml dump.
- WikipediaFS — view and edit Wikipedia articles as if they were real files.
- wikipedia:External editors
- WikiPrep — a Perl script for preprocessing Wikipedia XML dumps.