How to Extract Weather Data from Google in Python

preview_player
Показать описание
Scraping Google weather search page to extract useful information such as current weather, temperature, next days' weather and much more in Python using requests and Beautiful Soup.
As you may know, Web scraping is essentially extracting data from websites. Doing such task in a high-level programming language like Python is very handy and powerful. In this tutorial, you will learn how to use requests and BeautifulSoup to scrape weather data from Google search engine.

Although, this is not the perfect and official way to get the actual weather for a specific location, because there are hundreds of weather APIs out there to use. However, it is a great exercise for you to get familiar with scraping.

•Licence:

TheFatRat music is copyrighted but free to use only on youtube if credit is added!

➤ Include the following in your video description (Copy & Paste):

Song: TheFatRat - Rise Up (Vlog No Copyright Music)
Music provided by Vlog No Copyright Music.
Рекомендации по теме
Комментарии
Автор

Thanks for the video!
It shows "class" as an invalid syntax.
FYI I'm using python2.7 otherwise "import requests" won't work. I've changed f as .format(search).
Could you help plz...

neesorangepeel
Автор

How did u know to search for "BNeawe"? I dont see it anywhere when i inspect the google page

HimanshuSingh-tvdl
Автор

In my laptop.
It shows error in 'update'
That 'NoneType' object has No attribute 'text'

sameer_
Автор

Thanks you for sharing this awesome video !!

dreamdevelopers
Автор

how you find the "class" for do the scrap??

iamsotired
Автор

Hey Good exercise ....Keep going I believe in you .... Try to achieve an Imaginary programmer hidden inside you.... Best of Luck ...Keep going ... The background music is awsome ....

paramdudhe
join shbcf.ru