websearch accepts multiple keyword
This commit is contained in:
parent
0fe6b50dc2
commit
2981d6d9cc
@ -5,12 +5,13 @@ import urllib
|
||||
def parser(subparsers, config):
|
||||
parser = subparsers.add_parser('websearch',
|
||||
help="launch a search on Google Scholar")
|
||||
parser.add_argument("search_string",
|
||||
parser.add_argument("search_string", nargs = '*',
|
||||
help="the search query (anything googly is possible)")
|
||||
return parser
|
||||
|
||||
|
||||
def command(config, ui, search_string):
|
||||
print search_string
|
||||
url = ("https://scholar.google.fr/scholar?q=%s&lr="
|
||||
% (urllib.quote_plus(search_string)))
|
||||
% (urllib.quote_plus(' '.join(search_string))))
|
||||
webbrowser.open(url)
|
||||
|
Loading…
x
Reference in New Issue
Block a user