Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get text of webpage
#18

Thats what I do, but now i'm not getting any error, it's just simply not working?
I've changed this just to display the highs.


Macro ( 10 Day Forecast2 )
Code:
Copy      Help
str Src Src2 Message zipcode url url2 s a
zipcode="48183"
ARRAY(str) Temp FeelsLike
url.from("http://www.weather.com/weather/tenday/" zipcode "?dp=htempdp")
url2.from("http://www.weather.com/weather/tenday/" zipcode "?dp=ltempdp")
int MatchSuccess i

IntGetFile url Src
Src.setclip
if(findrx(Src ">(\d+)&deg;F</B>" 0 1|4 Temp)<0) ret
,Message.from("Temperature: " Temp[1] "F")
,mes(Message "10-Day Forecast" "isa")

I get no error but it doesnt put anything into a message.
Taking on Quick Macros one day at a time


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)