Skip to content

Search the web and various other websites from your terminal!

Notifications You must be signed in to change notification settings

kayozxo/Terminal-Web-Search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

Terminal-Web-Search

License

Description

Terminal-Web-Search is a command-line tool that allows users to search different popular websites like YouTube, Google, Pinterest, Twitter, Reddit, Medium, Spotify, Wikipedia, and GitHub with just one command from the terminal.

Table of Contents

Dependencies

Terminal-Web-Search relies on the following Python library:

You can install it using:

pip install colorama

Installation

  1. Clone the repository to your local machine.

    git clone https://github.com/your-username/Terminal-Web-Search.git
  2. Open your .bashrc file using a text editor like Vim.

    vim ~/.bashrc
  3. Add the following alias at the end of the .bashrc file.

    alias s='python PATH_TO_MAIN.PY_FILE'

    Note: Replace PATH_TO_MAIN.PY_FILE with the actual path to your main Python file.

  4. Save and quit the file using Vim commands (Esc, :wq, Enter).

  5. Source the updated .bashrc file.

    source ~/.bashrc
  6. Restart your terminal.

Usage

After completing the installation steps, you can use the following commands to perform web searches for specific websites:

  • Google: s g search_query
  • YouTube: s yt search_query
  • Medium: s md search_query
  • Reddit: s rt search_query
  • Spotify: s sp search_query
  • Pinterest: s pt search_query
  • GitHub: s gt search_query
  • Twitter: s x search_query
  • Wikipedia: s wk search_query

Replace search_query with your actual search query.

Supported Websites

Terminal-Web-Search supports the following popular websites:

  • Google (g)
  • YouTube (yt)
  • Medium (md)
  • Reddit (rt)
  • Spotify (sp)
  • Pinterest (pt)
  • GitHub (gt)
  • Twitter (x)
  • Wikipedia (wk)

Feel free to expand this list based on your preferences and needs.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Releases

No releases published

Packages

No packages published

Languages