Skip to content

Instantly share code, notes, and snippets.

@vanatteveldt
Created August 26, 2015 19:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vanatteveldt/1fa5a1056adc72c6c50d to your computer and use it in GitHub Desktop.
Save vanatteveldt/1fa5a1056adc72c6c50d to your computer and use it in GitHub Desktop.
wva@amcat-production: (master) ~/ocg/mw-ocg-bundler$ cat /etc/mediawiki/parsoid/settings.js
"use strict";
exports.setup = function( parsoidConfig ) {
parsoidConfig.setInterwiki( 'amcatwiki', 'http://wiki.amcat.nl/api.php' );
// Use selective serialization (default false)
parsoidConfig.useSelser = true;
// allow cross-domain requests to the API (default disallowed)
//parsoidConfig.allowCORS = '*';
};
$ bin/mw-ocg-bundler -v --php-api http://wiki.amcat.nl --api http://wiki.amcat.nl Querying
[0%] Fetching wiki configuration
[0%] Fetching wiki configuration: http://wiki.amcat.nl
[4%] Fetching wiki configuration:
[8%] Fetching wiki configuration: enwiki siteinfo
[17%] Fetching parsed articles
[17%] Fetching parsed articles: collection
[23%] Fetching parsed articles: enwiki:Querying [Parsoid, latest revision]
Retrying (1) https://en.wikipedia.org/api/rest_v1/page/html/wiki%2FQuery 404
Retrying (2) https://en.wikipedia.org/api/rest_v1/page/html/wiki%2FQuery 404
Retrying (3) https://en.wikipedia.org/api/rest_v1/page/html/wiki%2FQuery 404
Error fetching restbase1 result: https://en.wikipedia.org/api/rest_v1/page/html/wiki%2FQuery
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment