Relative Content

Tag Archive for pythonpython-3.xselenium-webdriverselenium-chromedriver

pythonanywhere.org keeps sending me back to login while using selenium

So I have a task on pythonanywhere, and every month I have to extend the expiration date on it. Last month, I accidentally let the expiration date lapse, and my task stopped running. So I set out to write a script that using selenium to login to pythonanywhere, check if today is the day before the expiration date, and if so, extend the expiration date. But, whenever I try to login it, I run the script, it enters my login credentials, hits the login button, and gets redirected too… the login screen. Again. I put this in a infinite loop to see if it would end, and it didn’t. I just saw in the robots.txt file /login and /user is disallowed. Is that what’s causing this? If it’s disallowed, what will happen if I do it anyway? Should I try and get permission from pythonanywhere support and tell them I own the account? Should I just give up on this project? Here’s my code: