alexz-enwp / wikitools

Python package for working with MediaWiki wikis
105 stars 51 forks source link

using wikitools with MediaWiki in localhost #46

Open shmsw25 opened 7 years ago

shmsw25 commented 7 years ago

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

SrikarKashyap commented 7 years ago

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