On Fri, Aug 17, 2018 at 11:45 AM, Matthew H. Cahn <mc...@princeton.edu> wrote:
> r = requests.get(baseUrl, params=params)
>
> print(r)
> print(r.text)
>
> params = {'action': 'edit',
>           'title': 'TestPage3',
>           'summary': 'Test summary',
>           'text': 'article content',
>           'token': '+\\'}

You should be using the token in the response (r) here, not
hard-coding the current anonymous-user "+\" token.


-- 
Brad Jorsch (Anomie)
Senior Software Engineer
Wikimedia Foundation

_______________________________________________
Mediawiki-api mailing list
Mediawiki-api@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api

Reply via email to