I need to load the weather for a lot of locations so I can display it on my website. What I'm doing is running an update script once an hour and caching the results of the script in a text file on my server.
But so far I have managed to retrieve only one location at a time, which is not efficient at all. I've thought about distributing the updates throughout the hour, but that's not ideal.
Is there any way how to get more locations from Yahoo in the same request? An example of what I'm looking for is:
http://weather.yahooapis.com/forecastrss?w=12345,43171,43411,43141
尝试YQL查询 :
SELECT * FROM weather.forecast WHERE location IN (90210, 12345) -- etc
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.