Traditional Culture Encyclopedia - Weather forecast - Python weather api
Python weather api
# Get temperature, humidity, wind power, etc.
Weather _URL_A = "/data/sk/%s.html "
# Get weather conditions, maximum/minimum temperatures, etc.
WEATHER _ URL _ B = "/data/city info/% s . html "
# Get the weather data for the next 7 days
Weather _URL_C = "/weather/%s.shtml "
The %s in the URL refers to the code corresponding to the city. Detailed reference:
blogs.com/toosuo/p/3868004.html
However, some interfaces in this article are no longer available.
Of the three URLs I gave above, the first two directly return data in json format; The third return is a page from which you need to extract the information you want.
- Previous article:Travel to Yueyang Dongting Lake in winter.
- Next article:When are the four seasons in Xuzhou dawn and dark?
- Related articles
- Where is body fat generally stored and distributed?
- Which anti-aging is the essence of small brown bottle and Hetian Qidan?
- Hot weather and complementary food
- Why did you put Yang Guifei to death?
- I want to go to Ajida, Maldives. What about this island?
- What is the best travel time in Xi 'an?
- How to light the flame of the 2008 Beijing Olympic Games?
- What month was Jia Baoyu born in A Dream of Red Mansions?
- Agricultural Development in Huzhen, Badal
- What services does Fuzhou Gui 'an Water World ticket include?