Code: Select all
[Variables]
;URL="http://slashdot.org/slashdot.rdf"
URL="http://defence-blog.com/feed"
;URL="http://defence-blog.com/feed?__cf_chl_captcha_tk__=..."
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
BackgroundMode=2
SolidColor=0,0,0,255
---Measures---
[MeasureRSSParent]
Measure=WebParser
URL="#URL#"
RegExp="(?siU)^(.*)$"
StringIndex=1
---Meters---
[MeterRSSItemTitle]
Meter=String
MeasureName=MeasureRSSParent
W=144
H=36
FontSize=11
FontColor=255,255,255,255
StringStyle=Bold
AntiAlias=1
LeftMouseUpAction=["#URL#"]
DynamicVariables=1
Long story short, while for slashdot.org (the 1st feed URL) I'm getting the actual feed content (i.e. the <?xml version=... stuff), for defence-blog.com I'm getting a bare HTML without any feed content in it (i.e. the <!DOCTYPE html>... stuff). Is this part of the behavior related to this excerpt from the manual:
or it can be fixed and get the feed content of defence-blog.com with WebParser just like any other feed out there? Maybe some special UserAgent, Header, Flag options needed in the WebParser measure? I assume donwloading the webpage locally won't yield a different result from what I already tried, right?WebParser cannot use cookies or other session-based authentication, so it cannot be used to retrieve information from web sites requiring a login. However, Webparser can be used on sites which support HTTP authentication.
EDIT2: Thanks for moving it in the appropriate section.