Whenever I search a topic on Google, I don’t look at just one search result at a time. By middle-clicking a search result link (or clicking while holding ctrl), I open the first several links in a bunch of new tabs to read later. I search Google often enough that this workflow—
- opening my browser
- searching for a topic, and middle-clicking several links one by one
- It's Tedious 🥱
It would be nice if I could simply type a search term on the command line and have my computer automatically open a browser with all the top search results in new tabs.
this script does exactly that😃.
This is what your program does:
- Gets search keywords from the command line arguments.
- Retrieves the search results page.
- Opens a browser tab for each result.
- 🐍 python
- Most of the stuff is plain python scripts which will only require you to have python installed on your device and an IDE/text editor to see and make changes to the scripts on your system.
- If you don't have python on your machine then you can download it from here
- beautifulsoup4
- requests
- Make sure you have python package manager (pip) installed on your system
- Go to command line and type
pip install <library name>
{ pip3 on mac } - For detailed information see python's official tutorial on how to install packages
- 👯♂️Clone/Download using
[email protected]:Arsenic-ATG/Map-It.git
- Run the python script :
- Pass the stuff to be searched through the command line arguments like this :
python3 lucky.py <thing to search for>
egpython3 lucky.py google
- Pass the stuff to be searched through the command line arguments like this :
- If you like this project then don't forget to give a star ⭐️
- For more cool automations like this you can head over to my python automations repo