To fetch weather updates of any city
- Here we will fetch the weather updates from the url of the weather website through requests and getting the formatted output using bs4 library.Here we can fetch the data of any city.
- List out the libraries imported are bs4 and requests.
Here we need to install the libraries first then we need the google website url for fetching the data and then using the request we will fetch all the data and then with bs4 we will get only the required data in proper format.
We just need to get the url for fetching the weather updates and paste it in the script and then using bs4 we will get the only necessary things in the output.
Neel Shah