Pikilipsis input?

For various reasons, I cannot use login.py to login, so I was wondering if anyone knows the code so that I can log into Wikipedia using my script without running a separate script? Hooray!

-1


a source to share


2 answers


The answer will be simple: you cannot use pywikipedia without being able to run login.py

.

This file not only provides a nice user interface to try out your configuration: it contains all of the authentication primitives we use in the login framework. Without logging in, you can't do much, so no.



If you want a more useful answer, you need to be more precise: how, why you can't use login.py, and what operations you need to do with Pywikipedia.

+1


a source


One option that worked for me when I could not interactively use my remote server (and therefore not enter a password) was to copy my credentials to the remote server.

By default, your remote permissions are stored in ~/.pywikibot/pywikibot.lwp

and it worked for me in the past for logging in locally and then copying that file .lwp

to the remote server and then I never had to enter my password on the remote server anymore.



I am not claiming that this method is completely safe, but it is a hack.

0


a source







All Articles