Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Smart Weather Information App Using Python

soup = BeautifulSoup(res.text,'html.parser')   
    location = soup.select('#wob_loc')[0].getText().strip()  
    current_time = soup.select('#wob_dts')[0].getText().strip()       
    info = soup.select('#wob_dc')[0].getText().strip() 
    weather = soup.select('#wob_tm')[0].getText().strip()
    information = f"{location} 
 {current_time} 
 {info} 
 {weather} °C "
Source by codingblog.online #
 
PREVIOUS NEXT
Tagged: #Smart #Weather #Information #App #Using #Python
ADD COMMENT
Topic
Name
7+7 =