China Naming Network - Eight-character fortune telling - Free weather forecast json interface
Free weather forecast json interface
# 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.