I open the page with Selenium -
driver = webdriver.Chrome() # login steps are here driver.get(\'https://www.example.com/?file=%d\' % (FILE_ID) )