I’ve written a small command-line program that downloads the raw wikipedia markup text of the specified article. It does not download images or other supporting media. It does not follow links.
It is designed as a shortcut to using
wget in situations where you want article markup. For example, to get the raw markup for the “Abraham Lincoln” article, you’d normally run
wget 'http://en.wikipedia.org/w/index.php?title=Abraham_Lincoln&action=raw'; that’s lame. Instead use wikitext, and just run
wikitext "Abraham Lincoln" If you want the markup for the “Baberaham Lincoln” article, you’ll have to write your own program.