Skip to content
forked from jrkong/pySearch

Simple command line python script that opens a new browser tab to search the input string

Notifications You must be signed in to change notification settings

JoshuaRM/pySearch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pySearch

pySearch is a simple command line python script that allows for seamlessly performing a web search without removing your hands off the keyboard as it opens a new browser tab to search the input string. Normally when working on a command line interface, a user would need to use their mouse to perform a web search as they would take one hand off the keyboard and navigate to their browser. Even when using ALT+TAB, users would still need to navigate to the search bar with the mouse and then return to the keyboard to type their search.

pySearch simplifies this to a single command line command.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Software you will need

  1. Python - https://www.python.org/downloads/
  2. Text Editor - eg Visual Studio Code (if planning to edit this repo)

Installing

Clone this Repo

For Windows: Command Line Prompt OSX: Terminal

To run use

python C:\Users\pySearch\pySearch.py ( different path name where you have cloned pySearch into)

Command Line Arguments

  1. -s takes query to search
  2. -e changes name or alias of search engine and sets it to as search engine for session
  3. -d changes to domain extension
  4. -h will provide description of command line arguments

Running the tests

To be added ..

Built With

Python 3

Contributing

Please read [CONTRIBUTING.md] for details on our code of conduct, and the process for submitting pull requests to us.

( To Be added )

Authors

See also the list of contributors who participated in this project. (TO be added)

Objective

The goal of pySearch is to bring web search capabilities to your command line so initiating a web search doesn't require taking your hand off the keyboard. The current goal is to integrate as much of the web search workflow into the command line so users can get all the keyboard interaction out of the way before taking one hand off the keyboard to use the mouse to interact with the browser.

Specific Goals

  1. Support webcrawling which would allow basic searches
      - Basic dictionary lookup would be a great test case for this, to be performed before opening a browser (think Unix man pages.
  2. Basic browser interactivity through pySearch
      - The ability to navigate and control your browser using pySearch (so scrolling, selecting and opening search links, open a new tab)
  3. pySearch's interactive mode shouldn't impede the user's ability to use command line commands
      - While it allows keyboard interactivity with the browser while inside the command line it should have the ability to pipe command line commands to the shell and return their output to the user

About

Simple command line python script that opens a new browser tab to search the input string

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%