fine-tuning list opening

This commit is contained in:
lab-cat 2022-05-28 12:06:29 +02:00
parent 5042ce0807
commit 309a551b2d

View file

@ -1,9 +1,11 @@
import sys import sys
import re
import time import time
import webbrowser import webbrowser
file = sys.argv[1] file = sys.argv[1]
with open(file) as f: with open(file) as f:
for line in f: for line in f:
webbrowser.open(f"https://www.lens.org/lens/search/scholar/list?q=author.affiliation.name.keyword:\"{line.rstrip()}\"") u = re.sub(r'#.*', '', line).rstrip()
webbrowser.open(f"https://www.lens.org/lens/search/scholar/list?q=author.affiliation.name.keyword:\"{u}\"", new=2, autoraise=False)
time.sleep(10) time.sleep(10)