我正在尝试使用Parsoid-JSAPI项目将大量wikitext解析为html。
解析工作正常,但它仍然调用wikimedia API。如果我尝试指定域,调用Parsoid.parse("wikitext", {domain: 'localhost'}),它会显示No API URI available for prefix: null
我必须安装Parsoid服务器并运行它。TypeError: Cannot read property 'length' of undefined
at peg$c379 (eval at <anonymous> (/opt/bitnami/apps/parsoid_processText (/opt/bitnami/apps/parsoid/lib/mediawiki.tokenizer.peg.js:180
运行"sudo apt更新“给我:
W: Failed to fetch http://parsoid.wmflabs.org:8080/deb/dists/wmf-production/InReleaseW: Failed to fetch http://parsoid.wmflabs.org:8080/deb/dists/wmf-production/Release.gpg Unable to connectto p
因为parsoid在安装后没有启动。与Parsoid/RESTBase服务器(HTTP401)联系时出错
同时,在parsoid终端上,我看到以下几行:(C:\Users\baran\node_modules\parsoid\lib\mw\ApiRequest.js:332:35)\n at Request.(C:\Users\baran\node_modules\parsoid</