Skip to content

Web browser search utility through command line

Notifications You must be signed in to change notification settings

aerasmo/search_util

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Overview

Web browser search utility through command line

Usage

  • 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

Adding custom search engines

Simply add a new object in the search_engines.json and use.

Example

Adding duckduckgo as search engine:

  1. Search test query in duckduckgo
  2. It shows https://duckduckgo.com/?q=test+query
  3. Add the following to search_engines.json
    "duckduckgo": {
        "shortArg": "d",
        "searchUrl": "https://duckduckgo.com/?q=",
        "seperator": "+"
    }
  1. Search through duckduckgo can now be used py search.py apples -d

About

Web browser search utility through command line

Topics

Resources

Stars

Watchers

Forks

Languages