Just tested this and it seems that this step
login_link = browser.find_element_by_xpath("//a[text()='log In']")
login_link.click()
sleep(2)
is unnecessary. Going to https://www.instagram.com/
sends you straight to the login page on a fresh browser instance.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…