How to Scrape Web Data from Google using Python? Last Updated : 12 Jul, 2025 Comments Improve Suggest changes Like Article Like Report Prerequisites: Python Requests, Implementing Web Scraping in Python with BeautifulSoup Web scraping is a technique to fetch data from websites. While surfing on the web, many websites don’t allow the user to save data for personal use. One way is to manually copy-paste the data, which both tedious and time-consuming. Web Scraping is the automation of the data extraction process from websites. In this article, we will scrape the weather update from google's search result. Modules Required BeautifulSoup: This module is used for iterating, searching, and modifying the parse tree over the HTML or XML parser. To download it type the below command in the terminal.pip install beautifulsoup4 OR pip install bs4Requests: Requests library is one of the integral part of Python for making HTTP requests to a specified URL. To download it type the below command in the terminal.pip install requestsBelow is the implementation. Python3 import requests from bs4 import BeautifulSoup # Enter the City Name city = input("Enter the City Name: ") search = f"Weather in {city}" # URL url = f"https://www.google.com/search?q=%7Bsearch%7D" # Sending HTTP request req = requests.get(url) # Pulling HTTP data from internet sor = BeautifulSoup(req.text, "html.parser") # Finding temperature in Celsius temp = sor.find("div", class_='BNeawe').text print(f'Temperature in {city} is {temp}') Output : Comment More infoAdvertise with us Next Article Implementing Web Scraping in Python with Scrapy A akash_kumar_singh Follow Improve Article Tags : Python Python Programs Python-requests Web-scraping Python web-scraping-exercises +1 More Practice Tags : python Similar Reads Python program to Recursively scrape all the URLs of the website In this tutorial we will see how to we can recursively scrape all the URLs from the website Recursion in computer science is a method of solving a problem where the solution depends on solutions to smaller instances of the same problem. Such problems can generally be solved by iteration, but this ne 2 min read Python program to Recursively scrape all the URLs of the website In this tutorial we will see how to we can recursively scrape all the URLs from the website Recursion in computer science is a method of solving a problem where the solution depends on solutions to smaller instances of the same problem. Such problems can generally be solved by iteration, but this ne 2 min read Implementing Web Scraping in Python with Scrapy Nowadays data is everything and if someone wants to get data from webpages then one way to use an API or implement Web Scraping techniques. In Python, Web scraping can be done easily by using scraping tools like BeautifulSoup. But what if the user is concerned about performance of scraper or need to 5 min read Implementing Web Scraping in Python with Scrapy Nowadays data is everything and if someone wants to get data from webpages then one way to use an API or implement Web Scraping techniques. In Python, Web scraping can be done easily by using scraping tools like BeautifulSoup. But what if the user is concerned about performance of scraper or need to 5 min read Scrape Tables From any website using Python Scraping is a very essential skill for everyone to get data from any website. Scraping and parsing a table can be very tedious work if we use standard Beautiful soup parser to do so. Therefore, here we will be describing a library with the help of which any table can be scraped from any website easi 3 min read Scrape Tables From any website using Python Scraping is a very essential skill for everyone to get data from any website. Scraping and parsing a table can be very tedious work if we use standard Beautiful soup parser to do so. Therefore, here we will be describing a library with the help of which any table can be scraped from any website easi 3 min read Like