{"id":256,"date":"2011-04-20T19:08:54","date_gmt":"2011-04-21T02:08:54","guid":{"rendered":"http:\/\/www.analogrithems.com\/rant\/?page_id=256"},"modified":"2011-04-28T22:02:33","modified_gmt":"2011-04-29T05:02:33","slug":"mediawiki2wordpress","status":"publish","type":"page","link":"https:\/\/www.analogrithems.com\/rant\/portfolio\/mediawiki2wordpress\/","title":{"rendered":"MediaWiki to WordPress in 10min"},"content":{"rendered":"<p>I didn&#8217;t have a lot of time to convert my whole wiki to wordpress, so I did a little quick research and came up with this quick perl script.<\/p>\n<p>&nbsp;<\/p>\n<p>Here is the usage, enjoy \u00c2\u00a0<a href=\"http:\/\/www.analogrithems.com\/rant\/wp-content\/uploads\/2011\/04\/mediawiki2wp.txt\">mediawiki2wp<\/a><\/p>\n<p>.\/mediawiki2wp.pl -f &lt;mediaWikiFile.xml&gt; [-o &lt;outputfile&gt;] [-v] [-h] [-V]<br \/>\n-f \tThe XML file that was exported from media wiki<\/p>\n<p>-o\tOutput file to store the wordpress XML in. \u00c2\u00a0If not defined, goes straight to STDOUT<\/p>\n<p>-h \tThis help message-u\tBase URL<\/p>\n<p>-v\tVerbose<\/p>\n<p>-V\tVersion<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Before anyone ask, I really don&#8217;t plan on making this a larger project, so if you want to take it and run with it enjoy. \u00c2\u00a0Also it doesn&#8217;t bring the file attachments over \ud83d\ude41<\/p>\n<p>&nbsp;<\/p>\n<p>To use it export all your Mediawiki pages via the special page export. \u00c2\u00a0Place all the pages you plan to export one per line and hit go.<\/p>\n<p>Take that output file run it through the above script, login to your wordpress go to Tools-&gt;Import select wordpress Import. \u00c2\u00a0I made the perl script utilize the WordPress WRX format<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I didn&#8217;t have a lot of time to convert my whole wiki to wordpress, so I did a little quick research and came up with this quick perl script. &nbsp; Here is the usage, enjoy \u00c2\u00a0mediawiki2wp .\/mediawiki2wp.pl -f &lt;mediaWikiFile.xml&gt; [-o &lt;outputfile&gt;] [-v] [-h] [-V] -f The XML file that was exported from media wiki -o [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":49,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-256","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.analogrithems.com\/rant\/wp-json\/wp\/v2\/pages\/256","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.analogrithems.com\/rant\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.analogrithems.com\/rant\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.analogrithems.com\/rant\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.analogrithems.com\/rant\/wp-json\/wp\/v2\/comments?post=256"}],"version-history":[{"count":4,"href":"https:\/\/www.analogrithems.com\/rant\/wp-json\/wp\/v2\/pages\/256\/revisions"}],"predecessor-version":[{"id":259,"href":"https:\/\/www.analogrithems.com\/rant\/wp-json\/wp\/v2\/pages\/256\/revisions\/259"}],"up":[{"embeddable":true,"href":"https:\/\/www.analogrithems.com\/rant\/wp-json\/wp\/v2\/pages\/49"}],"wp:attachment":[{"href":"https:\/\/www.analogrithems.com\/rant\/wp-json\/wp\/v2\/media?parent=256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}