Traditional Culture Encyclopedia - Weather forecast - Weather extraction
Weather extraction
# 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:What is the air pollution index?
- Next article:What's the best dress for traveling in Qinghai in June?
- Related articles
- How terrible is the water wall at sea?
- I sweat easily. When you move a little or when the weather is hot, you are sweating all over, and the sweat on your head will keep flowing. What the hell is going on? Yes, mine.
- Why is the temperature hot and the face yellow and black?
- When was the first frost in 2023?
- Why is Hebei seriously polluted?
- When to sow sunflower seeds?
- How did Du Fu die?
- Who knows the background song of CCTV ocean weather forecast?
- A short sentence describing cold weather
- Know everything about Hengyang