Skip to content

Automation that opens all the top google searches in new tabs of your browser

License

Notifications You must be signed in to change notification settings

Arsenic-ATG/I-am-Feeling-Lucky

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

" I am Feeling Lucky " Google search

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.

Language used

  • 🐍 python

Setup required 🛠

  • 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

Additional python libraries required for this project

  • beautifulsoup4
  • requests

But how do I install additonal packages? 🤨

  1. Make sure you have python package manager (pip) installed on your system
  2. Go to command line and type pip install <library name> { pip3 on mac }
  3. For detailed information see python's official tutorial on how to install packages

🏃‍♀️Get it running🏃‍♂️

  • 👯‍♂️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> eg python3 lucky.py google

Liked it ? 😃

  • 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