Answer the question
In order to leave comments, you need to log in
How to get page url using python mechanize?
I have a script that first opens example.com. Then the page is redirected to a new address, for example, example.com/?test=321&qwerty=156. Is there any way to get this new url?
Answer the question
In order to leave comments, you need to log in
response = browser.open('http://example.com')
url = response.geturl()
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question