fine-tuning list opening
This commit is contained in:
parent
5042ce0807
commit
309a551b2d
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue