I have the following code which will import a .txt file with a list of urls that, with the for statement, I'd like open one by one. Unfortunately webbrowser won't open the link by one by one, but it would open a new Chrome tab with the url "https://link" hence giving me a "about:blank" tab. Do you guys have any idea how to make it work?Thank you very much!
import webbrowser as wb
chrome="/Users/jamesnorton/applications %s"
file=open('File.txt')
for link in file:
wb.get("google").open_new('link')