Chess Programming Wiki

Discussion of chess software programming and technical issues.

Moderators: hgm, Harvey Williamson, bob

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
ilhooq
Posts: 4
Joined: Tue Mar 10, 2015 11:07 am
Contact:

Re: Chess Programming Wiki

Post by ilhooq » Sun Apr 15, 2018 6:36 pm

Gerd Isenberg wrote: Current plans are to convert it to MediaWiki - despite bugs and problems by wikispaces to convert its native wikitext to other formats, we managed to get a ~140 MB MediaWiki.zip, but so far no way to preserve the complete history for CC BY-SA conformance.
Since many years, the CPW is for me a treasure of knowledges and I decided to write a script to properly import pages, users, files and history from WikiSpaces to MediaWiki.

The script uses Wikispaces SOAP API to import pages content and history and WebDAV to import files.

The script can be downloaded here :

https://gist.github.com/ilhooq/65c1e249 ... e8647f2691

I hope it will be useful for your migration.

ilhooq
Posts: 4
Joined: Tue Mar 10, 2015 11:07 am
Contact:

Re: Chess Programming Wiki

Post by ilhooq » Tue Apr 17, 2018 9:47 am

DustyMonkey wrote:Anyone know of an easy method to download an entire wiki for preservation?
I made an offline version of the wiki (~160MB) using Wikispaces SOAP API to get pages content and WebDAV to import files and then PHP to build pages layout.
Once extracted, you'll find a scripts folder containing tools to maintain up to date pages and files until the Wikispaces closure.

User avatar
cdani
Posts: 2054
Joined: Sat Jan 18, 2014 9:24 am
Location: Andorra
Contact:

Re: Chess Programming Wiki

Post by cdani » Tue Apr 17, 2018 12:07 pm

Thanks!!

User avatar
Luis Babboni
Posts: 422
Joined: Sat Feb 28, 2015 3:37 pm
Location: Argentina

Re: Chess Programming Wiki

Post by Luis Babboni » Tue Apr 17, 2018 2:53 pm

ilhooq wrote:
DustyMonkey wrote:Anyone know of an easy method to download an entire wiki for preservation?
I made an offline version of the wiki (~160MB) using Wikispaces SOAP API to get pages content and WebDAV to import files and then PHP to build pages layout.
Once extracted, you'll find a scripts folder containing tools to maintain up to date pages and files until the Wikispaces closure.
Is all the complete website?! :shock:

I downloaded it. Seems for me the same as navigate the original web.

Please explain how to use those .php scripts

Thanks!!

User avatar
stegemma
Posts: 851
Joined: Mon Aug 10, 2009 8:05 pm
Location: Italy
Contact:

Re: Chess Programming Wiki

Post by stegemma » Tue Apr 17, 2018 6:03 pm

ilhooq wrote:
DustyMonkey wrote:Anyone know of an easy method to download an entire wiki for preservation?
I made an offline version of the wiki (~160MB) using Wikispaces SOAP API to get pages content and WebDAV to import files and then PHP to build pages layout.
Once extracted, you'll find a scripts folder containing tools to maintain up to date pages and files until the Wikispaces closure.
This contents could be freely made available on a web-site of mine or there are license restrictions?
Author of Drago, Raffaela, Freccia, Satana, Sabrina.
http://www.linformatica.com

ilhooq
Posts: 4
Joined: Tue Mar 10, 2015 11:07 am
Contact:

Re: Chess Programming Wiki

Post by ilhooq » Tue Apr 17, 2018 7:54 pm

Luis Babboni wrote: Please explain how to use those .php scripts
If you are on Windows follow these steps :

1. Download PHP 7, then extract it in C:\php
2. Open a command line terminal (cmd) and change directory to the scripts directory where you extracted the wiki. ex :

Code: Select all

cd Downloads\chessprogramming-wiki\scripts
3.Define two environment vars in the cmd line:

Code: Select all

set USERNAME=yourWikispacesUsername
set PASSWORD=yourWikispacesPassword
4. To execute getPages.php :

Code: Select all

C:\php\php.exe -d extension_soap getPages.php
5. To execute getFiles.php :

Code: Select all

C:\php\php.exe -d extension_curl getFiles.php
On linux, install php, php-curl and php-soap on your distribution and open a terminal in the "scripts" directory.

To execute getPages.php :

Code: Select all

USERNAME=yourWikispacesUsername PASSWORD=yourWikispacesPassword php getPages.php
To execute getFiles.php :

Code: Select all

USERNAME=yourWikispacesUsername PASSWORD=yourWikispacesPassword php getFiles.php

User avatar
Luis Babboni
Posts: 422
Joined: Sat Feb 28, 2015 3:37 pm
Location: Argentina

Re: Chess Programming Wiki

Post by Luis Babboni » Tue Apr 17, 2018 11:36 pm

Thanks Sylvain!! :)

Gerd Isenberg
Posts: 2106
Joined: Wed Mar 08, 2006 7:47 pm
Location: Hattingen, Germany

Re: Chess Programming Wiki

Post by Gerd Isenberg » Fri Apr 20, 2018 11:30 am

CPW is under Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0).

The new wikimedia cpw makes good progress and will be available in about July with revisited and new content and links. No need to waste bandwidth or memory.

mjlef
Posts: 1337
Joined: Thu Mar 30, 2006 12:08 pm
Contact:

Re: Chess Programming Wiki

Post by mjlef » Fri Apr 20, 2018 1:41 pm

ilhooq wrote:
DustyMonkey wrote:Anyone know of an easy method to download an entire wiki for preservation?
I made an offline version of the wiki (~160MB) using Wikispaces SOAP API to get pages content and WebDAV to import files and then PHP to build pages layout.
Once extracted, you'll find a scripts folder containing tools to maintain up to date pages and files until the Wikispaces closure.
That is very cool. We can use that to speedup the transfer to a new site.

ilhooq
Posts: 4
Joined: Tue Mar 10, 2015 11:07 am
Contact:

Re: Chess Programming Wiki

Post by ilhooq » Fri Apr 20, 2018 2:11 pm

mjlef wrote:
ilhooq wrote:
DustyMonkey wrote:Anyone know of an easy method to download an entire wiki for preservation?
I made an offline version of the wiki (~160MB) using Wikispaces SOAP API to get pages content and WebDAV to import files and then PHP to build pages layout.
Once extracted, you'll find a scripts folder containing tools to maintain up to date pages and files until the Wikispaces closure.
That is very cool. We can use that to speedup the transfer to a new site.
To transfer the CPW to MediaWiki, you should use this script. It converts WikiSpaces Syntax, imports pages, files, users and history into MediaWiki.

Post Reply