Automation of empty url python 3