Traditional Culture Encyclopedia - Weather inquiry - Weather clock python
Weather clock python
# 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.
- Related articles
- Weather in Nanhe Sansi Township
- When is the most beautiful autumn in Tachuan?
- Where to travel in summer to cool off?
- Where is fun in Donggang?
- What are the types of black tea in China?
- What are the real estate wines in Tonglu?
- Wenzhou wencheng weather
- When will the summer vacation in Hebei begin in 2023?
- Is Lanzhou Quzhongzhou freckle really that good?
- Huanggang autumn and winter travel guide Huanggang mountain travel guide