Alibabacloud.com offers a wide variety of articles about past weather data by zip code, easily find your past weather data by zip code information here online.
Preview diagram (simpler and rougher)
Aggregation data National Weather forecast interface: HTTPS://WWW.JUHE.CN/DOCS/API/ID/39
Interface Address: Http://v.juhe.cn/weather/indexSupport format: Json/xmlRequest Mode: GetRequest Example: http://v.juhe.cn/weather/index?format=2cityname=%E8%8B%8F%E5%B7%9Ekey= The key you
Copy CodeThe code is as follows:
Class zip
{
var $datasec, $ctrl _dir = Array ();
var $eof _ctrl_dir = "\x50\x4b\x05\x06\x00\x00\x00\x00";
var $old _offset = 0; var $dirs = Array (".");
function get_list ($zip _name)
{
$zip = @fopen ($zip _name, ' RB ');
if (! $
type, why can't I verify it? I chose the sn verification white list.
The second time I tried it directly in the browser, the result was successfully read into the json data, and the rest will be parsed ....
Run the Code directly.
Weather
$ Ak, "location" => $ location, "output" => $ output );
// Baidu sn algorithm $ sn = caculateAKSN ($ ak, $ sk, $ url, $ quer
and the data to be parsed, of course, to be consistent, right? ~ here I used the Stringbulder Deletecharat method, according to the string subscript to remove the space and "3.0", and then, with the first line of code, JSON parsing done ~ ~ ~ Debugging look at my Weatherbean This object, the data are already obediently in there!! Summary: Made me long time, t
AJAX is a technique that can update parts of a Web page without reloading the entire page.Now we have written a simple Ajax sample to get the data, hoping to help.HTML code:1 TableBorder= "1" >2 because tbody tags are automatically added to Google, other browsers will not have this tag, so adding tbody is not confusing when selecting elements. -3 tbody>4 TR>5 th>Dateth>6 t
Baidu has gone through it and found some other methods to improve it.
Get weather URL: Weather.
Because it is written into the cookie record that day weather, all need to browse under the site.
JS
Code :
Copy code Code: var url
Ajax obtains data by city name (National Weather Forecast API) and ajaxapi
Preview a chart (relatively simple and rough)
Aggregate Data National Weather Forecast interface: https://www.juhe.cn/docs/api/id/39
Interface address: http://v.juhe.cn/weather/indexSupported formats
is imported. The extract loop continuously calls Inflater. Inflate until inflate. Finished becomes true, indicating that all input data has been decompressed. Finally, call javastructmarshalhelper. converttostring to convert the unsigned byte array to a string to be returned by the function.
The cszipll sample application (LL stands for low level) creates a long string and compresses it to about half the size. You can use these functions to do some w
This article describes how to use PHP to obtain the weather instance code of a specified region. For more information about how to use PHP to obtain the weather instance code of a specified region, see the following article, for more information, see
PHP obtains weather con
Understanding API interface, detailed use of the method can refer to my other blog: * Using Euler's language development platform to realize intelligent Customer Service development * show you how to use Olami Natural language understanding open Platform API to make your own smart Chat assistant -----Express Query interface Here is the use of Express Bird Instant query interface, free to use, please go to the official website () to apply for Appkey and Businessid, please fill in util q
Java invoke small application of weather webservice
No more nonsense to say, direct paste code:
Cityreq.java
Package com.weather;
Import javax.xml.bind.annotation.XmlElement;
Import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement (name= "Getweatherbycityname", namespace= "http://WebXml.com.cn/") public
class Cityreq {
Private String thecityname;
Public String Getthecityname () {r
PHP Crawl Weather Report Interface data problems, seek guidance
National Weather Bureau Free Weather Interface (Shenyang): http://www.weather.com.cn/data/cityinfo/101010100.html
This interface provides a JSON-formatted forecast data
Php capture weather forecast interface data problems, ask for advice National Meteorological Administration free weather forecast interface (Shenyang): http://www.weather.com.cn/data/cityinfo/101010100.html
This interface provides a weather forecast
Use PHP to write a weather forecast module
Weather data is collected by the Chinese meteorological website. Originally China weather website also gave the data API interface. The following is the address of the API. The returned data
Webpage special effects on get the weather code of China weather network
Var url = escape ("http://m.weather.com.cn/data/101210701.html ");Var cookie_info = "cookie_info ";Var date = new date ();Var hours = 24-date.gethours ()-1;Var mins = 60-date.getminutes ()-1;Var secs = 60-date.getseconds ();Date. settime (date.
of shelter from the storm." " }, "Trav": { "BRF": "Suitable", "TXT": "There is precipitation, the temperature is appropriate, in the rain to play do not have a mood, you can not miss the opportunity yo!" But remember to carry rain gear. " }, "UV": { "BRF": "Weak", "TXT": "UV strength is weak, recommended to rub SPF in front of 12-15, pa+ sunscreen skin care products." " } } } ]}var url = "https://free-api.heweather.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.