This code will extract the 1st search result from Google that you want to search... Save the "Main.py" file into your system. Install any python IDE into your system. Install "Beautiful soup" and "requests" module using pip installer into your system. Run that Main file by using that IDE. Now enter the string you want to search. And you will get the first resultant link searched by Google...
shivanshu1086/scrapping-the-Google-links
This code will extract the 1st search result from Google that you want to search...
Python