Weather Scrapper using python

Beautiful Soup is a library which facilitates 
the scraping of information from web pages. 
It   sits atop an HTML or XML parser, providing 
Pythonic idioms for parse tree iteration, 
searching, and alteration.


Beautiful Soup is a library which facilitates 
the scraping of information from web pages. 
It 
sits at the top of an HTML or XML parser,  
providing Pythonic idioms to iterate, search, and 
modify the parser tree.

Copy below source code:

libraries required: Requests & bs4 or BeautifulSoup

import requests
from bs4 import BeautifulSoup
search = "Weather in CALIFORNIA"
url = f"https://www.google.com/search?&q={search}"
req = requests.get(url)
aw = BeautifulSoup(req.text, "html.parser")
update = aw.find("div" ,class_="BNeawe").text


#python #code #webscrapper 

Featured Post

Day 41 — BGP Confederations: Sub-AS Design, External View and Migration

1. Opening Confederations are another way to scale BGP inside a large administrative domain. They divide the domain into member autonomous systems while presenting a single confederation identifier to external peers. They are powerful, but their operational model is more complex than simply 'using private ASNs inside.' The engineering goal is not to memorize another BGP command. It is to understand what information each speaker is allowed to propagate, what path information can be hidden, and what failure domain is created by the chosen control-plane architecture . 2. Concept and standards behavior RFC 5065 defines AS_CONFED_SEQUENCE and AS_CONFED_SET and how member-AS relationships are represented. Confederation external sessions have eBGP-like properties inside the confederation, while the confederation is presented externally as one AS. Modern guidance must also account for the fact that RFC 9774 prohibits new origination of AS_SET/AS_CONFED_SET in ordinary aggregation c...