[問題] rainmeter抓取氣象局警報rrs已刪文
完全不會寫的情況下,上網看了一些教學
RegExp="(?siU)<channel>.*<item>.*<pubDate>(.*)</pubDate>
.*<title>(.*)</title>.*<link>(.*)</link>.*<description>(.*)</description>
.*<item>.*<pubDate>(.*)</pubDate>.*<title>(.*)</title>.*<link>(.*)</link>
.*<description>(.*)</description>"
[MeasureSite]
Measure=Plugin
Plugin=Plugins\WebParser.dll
URL=https://www.cwb.gov.tw/rss/Data/cwb_warning.xml
RegExp="#Regexp#"
[MeasurepubDate1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureSite]
StringIndex=1
[Measuretitle1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureSite]
StringIndex=2
[Measurelink1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureSite]
StringIndex=3
IfMatch=(?i)^.+$
IfMatchAction=[!ShowMeter Meterlink1]
IfNotMatchAction=[!HideMeter Meterlink1]
[Measuredescription1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureSite]
Substitute="<![CDATA[ ":""," ]]>":","\n":""
StringIndex=4
-------------------------------------------------
[MeasurepubDate2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureSite]
StringIndex=5
[Measuretitle2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureSite]
StringIndex=6
[Measurelink2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureSite]
StringIndex=7
IfMatch=(?i)^.+$
IfMatchAction=[!ShowMeter Meterlink2]
IfNotMatchAction=[!HideMeter Meterlink2]
[Measuredescription2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureSite]
Substitute="<![CDATA[ ":""," ]]>":"","\n":""
StringIndex=8
在這個抓取條件下 如果有兩則警報 兩則都會出現
如果只有一則 變成都不會出現
請問要怎麼更改
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 114.27.125.114 (臺灣)
※ 文章網址: https://www.ptt.cc/bbs/Wallpaper/M.1592115983.A.176.html
Wallpaper 近期熱門文章
PTT數位生活區 即時熱門文章