Bizarre Python/Selenium looping behavior

Published: 17/09/2019
Bizarre Python/Selenium looping behavior
Source: STACKOVERFLOW.COM

I'm working on a program that saves the urls I visit to a file, then highlights them in the browser so I don't waste time visiting them again while searching through Google. The relevant part of my code follows: from selenium import webdriver urllist = [] with open('urls.txt') as file_object: for line in file_object: #[:-1] gets rid of newline "\n" at end of string urllist.append(line[:-1])

Read more
Related news
Comment
FACEBOOK