Page 1 of 1

Saving a copy of the GoW Wiki and all the tutorials on my PC

PostPosted: Sat Feb 20, 2010 12:15 pm
by Jamey
Hey guys, I hope this is the right forum section to ask this.

I was wondering, is there any way I can save the Guild of Writers Wiki (and all the tutorials and pictures for making fan-created ages) offline on my hardrive? I have a laptop and I want to be able to follow these tutorials when creating ages even when I am somewhere that does not have Internet Access. I know I won't be able to see updates made to the Wiki when viewing it offline, but at least I'll have something temporary to work with. ;)

Any help would be highly appreciated!

Re: Saving a copy of the GoW Wiki and all the tutorials on my PC

PostPosted: Mon Feb 22, 2010 2:29 pm
by Christian Walther
Here’s the script I used to download the wiki excerpt contained in the PyPRP 1.6 release:

http://svn.guildofwriters.com/pyprp/contrib/CWalther/getwikiexcerpt.sh
Code: Select all
mkdir "Wiki Excerpt"
cd "Wiki Excerpt"
wget -nH -r -l 1 -E -k -p --reject "Guild_of_Writers_Wiki:*,index.php?*,Help:*,Main_Page,Special:*,Category:*,User:*,User_talk:*,Current_events,gowwiki.xml" http://guildofwriters.com/wiki/What%27s_New_in_PyPRP_1.6 http://guildofwriters.com/wiki/Installing_PyPRP
wget -nH -x http://guildofwriters.com/w/skins/common/shared.css http://guildofwriters.com/w/skins/writers/main.css http://guildofwriters.com/w/skins/writers/bullet.gif http://guildofwriters.com/w/skins/writers/corners_left.png http://guildofwriters.com/w/skins/writers/corners_right.png http://guildofwriters.com/w/skins/writers/external.png
perl -pi -e 's/@import "\/w\/skins\/([^?]+)\?97/@import "..\/w\/skins\/\1/g' wiki/*.html
perl -pi -e 's/\/w\/skins\/([^%]+)%3F97/\/w\/skins\/\1/g' wiki/*.html
for i in ajax.js commonPrint.css wikibits.js; do mv w/skins/common/$i\?97 w/skins/common/$i; done
rm -r wiki/Special\:*


I realize this probably won’t help you a lot unless you’re a Unix geek (and I think you’re not), but unfortunately I don’t have time to explain it in detail right now. If you aren’t afraid of working on the command line and figuring out how things work on your own, you can get wget for Windows here and its documentation here and try playing with it along the lines of what I did here. Getting the whole wiki should actually be easier, but you’d probably end up with a lot of junk you don’t want.

Re: Saving a copy of the GoW Wiki and all the tutorials on my PC

PostPosted: Mon Feb 22, 2010 3:24 pm
by Aloys
Alternatively, you may want to use a 'website downloader' or 'offline browser'. I haven't used one iin a while, last one was 'Teleport Pro', I'm not sure what it's worht these days. 'Httrack' seems to get some feedback.

Re: Saving a copy of the GoW Wiki and all the tutorials on my PC

PostPosted: Mon Feb 22, 2010 5:12 pm
by ddb174
Httrack is great, though you should make sure it is set to ignore pages with "?" as part of the path. (I made a wiki source downloader as part of Drizzle, but that is for backing up the source text rather than viewing offline.)

Re: Saving a copy of the GoW Wiki and all the tutorials on my PC

PostPosted: Mon Feb 22, 2010 6:02 pm
by Jamey
ddb174 wrote:Httrack is great, though you should make sure it is set to ignore pages with "?" as part of the path. (I made a wiki source downloader as part of Drizzle, but that is for backing up the source text rather than viewing offline.)



I downloaded this, but how do you adjust the preferences to ignore pages with "?" as part of the path?

Re: Saving a copy of the GoW Wiki and all the tutorials on my PC

PostPosted: Tue Feb 23, 2010 10:42 am
by ddb174
I just tried it out with the defaults and it worked fine. So just go ahead and use it.

Re: Saving a copy of the GoW Wiki and all the tutorials on my PC

PostPosted: Wed Feb 24, 2010 1:29 pm
by Jamey
Awesome! I was able to download the Wiki successfully! :D

Is there a way to run an update using Httrack, so that when I do get internet access, I can update my offline copy of it?