Skip to content

Commit 84a21fe

Browse files
Karthik GarimellaKarthik Garimella
Karthik Garimella
authored and
Karthik Garimella
committed
add -a for author
1 parent 9c1dd95 commit 84a21fe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

run_scholar.py

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
parser = argparse.ArgumentParser(description='Wrapper for scholar.py')
1010
parser.add_argument('-p', '--phrase', dest='phrase')
11+
parser.add_argument('-a', '--author', dest='author')
1112
parser.add_argument('--after', type=int, dest='after')
1213
parser.add_argument('--no-citations', action='store_true', default=False, dest='citations',
1314
help='Do not include citations in results')
@@ -41,6 +42,7 @@
4142
query.set_timeframe(args.after, None)
4243
query.set_include_citations(not args.citations)
4344
query.set_include_patents(not args.patents)
45+
query.set_author(args.author)
4446
query.set_start(start_idx)
4547

4648

0 commit comments

Comments
 (0)