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.
Terminal-Web-Search relies on the following Python library:
You can install it using:
pip install colorama
-
Clone the repository to your local machine.
git clone https://github.com/your-username/Terminal-Web-Search.git
-
Open your
.bashrc
file using a text editor like Vim.vim ~/.bashrc
-
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. -
Save and quit the file using Vim commands (
Esc
,:wq
,Enter
). -
Source the updated
.bashrc
file.source ~/.bashrc
-
Restart your terminal.
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.
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.
This project is licensed under the MIT License - see the LICENSE file for details.