Web browser search utility through command line
- help -
py search.py -h
- basic search -
py search.py apples
- multi-line search -
py search.py "how to center a div in css" -g
- search with multiple search engines
py search.py "humans need not apply" -g -y
Simply add a new object in the search_engines.json
and use.
Adding duckduckgo as search engine:
- Search
test query
in duckduckgo - It shows
https://duckduckgo.com/?q=test+query
- Add the following to
search_engines.json
"duckduckgo": {
"shortArg": "d",
"searchUrl": "https://duckduckgo.com/?q=",
"seperator": "+"
}
- Search through duckduckgo can now be used
py search.py apples -d