Traditional Culture Encyclopedia - Weather inquiry - Html to get the weather forecast
Html to get the weather forecast
# 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
- Is China Southern Power Grid a state-owned enterprise or a central enterprise?
- What exercise is suitable for weight loss in autumn when the weather is slightly cooler?
- Are there any interesting places to recommend around Meishan?
- How does Samsung weather plug-in add gadgets?
- The weather forecast is one week in Jining 15 days.
- I would like to ask about the technology of planting sweet potatoes in Nanle area.
- Touching deeds in Wenchuan earthquake
- Shi Zhanming's Personal Life
- Who should the competent meteorological departments at all levels issue meteorological warnings to?
- What is the relationship between radio signal transmission and atmosphere? What is the relationship between internet speed and sunny days?