Breaking

Code Gripper
Responsive Advertisement
  • Home
HomePython

Automatic Google Search using Python Selenium

byMahabubur Rahman -November 19, 2022
0


You can automatically search Google using Python Selenium. This may take you roughly 2 minutes. Selenium is a popular web application testing framework. It is also used in web scraping.

Installation 


1. Selenium - 
pip install selenium
2. Chrome Browser
Download Chrome browser if you have not installer yet. The download is here.

3. Chrome Driver 
You also need to download chrome driver. For this you need to know what chrome browser you installed from here. Download the same chrome driver version you see the About Chrome section. You can download chrome driver from here.



Create a python file named  script.py the write the bellow code.
from selenium import webdriver

search_string='Beautiful Bangladesh'

search_string = search_string.replace(' ', '+')

browser = webdriver.Chrome('chromedriver')

search_result = browser.get("https://www.google.com/search?q=" + search_string + "&start=" + str(i))
Now save and run it. 

python  script.py



Tags Python Selenium
  • Facebook
  • Twitter

You may like these posts

Post a Comment

Previous Post Next Post

Follow Us

Popular Posts

Subscribe Us

Facebook

Categories

Main Tags

Code Gripper

September 30, 2023

Total Pageviews

Search This Blog

CODE GRIPPER

Code Gripper
CODE GRIPPER

  • Home
  • Python
  • PHP

Menu Footer Widget

  • Home
  • About
  • Contact Us
Code Gripper

About Us

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's.

Categories

Main Tags

Latest Posts

Most Popular

Design by Blogger | Distributed by Gooyaabi
  • Home
  • About Us
  • Contact Us
  • RTL Version

Contact Form