I\'m trying to write a simple script to log into Wikipedia and perform some actions on my user page, using the Mediawiki api. However, I never seem to get past the first log
The latest version of requests has support for sessions (as well as being really simple to use and generally great):
with requests.session() as s: s.post(url, data=user_data) r = s.get(url_2)