/DX2Googler

:eyes: Google from the terminal

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Latest release AUR Homebrew Debian Stretch+ Fedora 27+ openSUSE Leap 15.0+ Ubuntu Yakkety+

Availability License Build Status

DX2Googler is my take on googler (https://github.com/jarun/googler) is a power tool to Google (Web & News) and Google Site Search from the command-line. It shows the title, URL and abstract for each result, which can be directly opened in a browser from the terminal. Results are fetched in pages (with page navigation). Supports sequential searches in a single googler instance.

I originally started working on DX2Googler because I wanted using googler to have a feel more similar to using Google from a web browser. That, and I wanted to simplify the process, instead of having to type a huge command line just to do a simple search.

To do this, I added the following:

  • A few different input screens to choose from, including one that looks like the main Google.com webpage (with colored Google logo, input box, and non-functioning buttons)
  • Edit'd googler's prompts here and there, adding alot more color to make things alot easier to look at
  • Automatically set the output colors to match Google's default color theme
  • Automatically set the number of result to display argument by taking into account the terminals current size and figuring out how many results would fit on the screen
  • Added a HOTKEY option ([CTRL] + [k]), just like the search hotkey used for most GUI web browsers out there (except MS Edge, which used a different key combination)

INSTALLATION:

  1. After cloning this repo, navigate into the directory and execute the install.sh script
    1a. DX2Googler requires that the terminal be set up with DX2Setup (A script I made that will set up a system to make it easier to install and uninstall add-ons, keeping it totally separate), so it will search to see if DX2Setup is installed. If not, it will prompt to install it.

CONFIGURATION:

  1. After install, you can change the theme (the Google search screen) by running the command, dx2googler-theme from anywhere in the terminal.

    DX2Googler isn't affiliated to Google in any way.

For more information about googler (including all of its functions, arguments, etc), check out its README.md at https://github.com/jarun/googler