The program ends without any results because it's not taking into account that google asks for cookies acceptance before showing the google maps site. Maybe it is possible to add a sleep so the user has time to accept the cookies manually and then the program continues.