Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using wikitools with MediaWiki in localhost #46

Open
shmsw25 opened this issue Feb 23, 2017 · 1 comment
Open

using wikitools with MediaWiki in localhost #46

shmsw25 opened this issue Feb 23, 2017 · 1 comment

Comments

@shmsw25
Copy link

shmsw25 commented Feb 23, 2017

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants