wikitools icon indicating copy to clipboard operation
wikitools copied to clipboard

using wikitools with MediaWiki in localhost

Open shmsw25 opened this issue 8 years ago • 1 comments

Hi, I don't really get what it means by "my.wikisite.org" when I am using wikitools.wiki, for example,

site = wiki.Wiki("http://my.wikisite.org/w/api.php") 

I am using ubuntu and mediawiki-1.28.0. I have MediaWiki installed in my local server, and there is api.php in mediawiki-1.28.0 directory. What I want is using this api.php instead of api.php in en.wikipedia.org. However it seems that url parameter on wiki.Wiki initializer only accept http url. How can I use local MediaWiki?

Thanks

shmsw25 avatar Feb 23 '17 09:02 shmsw25

Try entering the url as http://127.0.0.1/localwikiname/api.php

I tried it for my local wiki installation (located at http://127.0.0.1/wiki/api.php) and it seems to work fine.

Cheers

SrikarKashyap avatar Mar 14 '17 10:03 SrikarKashyap