2016-08-31 15:39 GMT+03:00 Merlijn van Deen (valhallasw) valhallasw@arctus.nl:
On 30 August 2016 at 22:46, Strainu strainu10@gmail.com wrote:
I also tried your method and indeed, it sees me as anonymous.
...
Perhaps pywikibot only sends the cookies when saving a page?
No, it should always send the cookies, but possibly the cookies are not saved or read correctly -- that would be a bug.
In any case, you can force the bot to log in by calling site.login(); that should give you the same behavior as edit-then-query.
Thanks for the help Merlijn, explicit login worked! With some tweaks in user-config.py, it also works with oauth.
Strainu