import sys import time import webbrowser file = sys.argv[1] with open(file) as f: for line in f: webbrowser.open(f"https://www.lens.org/lens/search/scholar/list?q=author.affiliation.name.keyword:\"{line.rstrip()}\"") time.sleep(10)