Python 3 Web Scrape Live Google Weather API Data By City Name in Command Line Script Using BeautifulSoup4 Library Full Project For Beginners

You are currently viewing Python 3 Web Scrape Live Google Weather API Data By City Name in Command Line Script Using BeautifulSoup4 Library Full Project For Beginners

 

Welcome folks today in this post we will be scraping live weather data from google in command line using beautifulsoup4 library in python. All the full source code of the application is shown below.

 

 

Get Started

 

 

In order to get started you need to install the following library using the pip command as shown below

 

pip install bs4

 

After installing this library make an app.py file and copy paste the following code

 

app.py

 

 

 

 

Now if you execute the python script by typing the below command as shown below

 

python app.py

 

 

Now as you can see in the command line as soon we execute the script it ask for the city name we enter london and it returns the live temperature of 13 degree

Leave a Reply