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

--curonly still requires mwclient #400

Open
jrbray1 opened this issue Jan 1, 2021 · 1 comment
Open

--curonly still requires mwclient #400

jrbray1 opened this issue Jan 1, 2021 · 1 comment

Comments

@jrbray1
Copy link

jrbray1 commented Jan 1, 2021

both when you omit --xmlrevisions and use --curronly it still wants mwclient

python2 ./dumpgenerator.py --api=http://wiki.johnbray.org.uk/api.php --xml --curonly
Please install the mwclient module if you want to use --xmlrevisions.
...
)
File "./dumpgenerator.py", line 391, in getPageTitles
for title in titles:
File "./dumpgenerator.py", line 261, in getPageTitlesAPI
site = mwclient.Site(apiurl.netloc, apiurl.path.replace("api.php", ""), scheme=apiurl.scheme)

If mwclient is needed in all circumstances, it needs to say so

@cooperdk
Copy link

If mwclient is needed in all circumstances, it needs to say so

No, it doesn't. Take a look at requirements.txt where it is included. If you do what you're supposed when using a Python script, you won't get the error.

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