store the request_token in the url into a python variable

vvijay
When connect for login with the api key in a browser, I get http://127.0.0.1/?status=success&request_token=XXXXXXXXXXXXXXXXXXXXXXX in the url box. How can I store this in a variable or a file in python?
This discussion has been closed.