【03-17 问题求助】WebParser 如何加入相关header信息
rainmeter吧
全部回复
仅看楼主
level 2
浩然的度 楼主
WebParser 如何加入【Referer: http://www.weather.com.cn/】信息,没有的话获取不到信息
我里面这样写没有效果
2023年03月17日 11点03分 1
level 9
你是不是想复杂了。。。
以下代码,能顺利下载,没错误提示(广州的天气)
[WP123]
Measure=WebParser
UpdateRate=3600
URL=http://www.weather.com.cn/weather1d/101280101.shtml
Download=1
DownloadFile=123.txt
2023年03月17日 13点03分 2
我知道这个可以下载的。我想他下载的东西少一点,正好看到他这个链接能直接返回我需要的数据。就是需要带一个【Referer: http://www.weather.com.cn/】条件。在rainmeter里没试出来,所以来问问有没有大佬知道怎么弄[汗]
2023年03月20日 05点03分
@浩然的度 那个header的referer只怕不是这个用途的。。。
2023年03月20日 09点03分
level 9
天气网的天气预报接口:
http://weather.com.cn/data/city3jdata/china.html(省份列表)
http://weather.com.cn/data/city3jdata/provshi/10121.html(地区列表)
http://weather.com.cn/data/city3jdata/station/1012101.html(县城列表)
http://weather.com.cn/data/cityinfo/101210101.html(当天天气预报)
http://weather.com.cn/data/sk/101210101.html(当前实时信息)
多天的没找到,浏览器打开查看时,需用utf-8编码
2023年03月20日 09点03分 3
1