On Fri, Aug 17, 2018 at 11:45 AM, Matthew H. Cahn <mcahn(a)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