それとも、 webbrowserやSeleniumの実際のライブラリ コードを「ハック」してこれを行うのでしょうか? 私は現在のドキュメントを調べていますが、これが可能であるとは考えていませんが、実際のライブラリ コードを調整して、この機能を挿入することはできますか?
残念ながら、Selenium を使用した次のアプローチは機能しません。元の URL のみを返します。
import selenium
from selenium import webdriver
driver = webdriver.Chrome()
driver.get("https://api.instagram.com/oauth/authorize/?client_id=cb0096f08a387355f&redirect_uri=http://pythondev.instadev.com/instagramredirect.html&response_type=code")
print driver.current_url