Thu Posted December 17, 2008 Share Posted December 17, 2008 I've been playing around with trying to make a script to retrieve some data from websites, but getting blocked immediately. WinGetText does not seem to be what I am looking for, or maybe I'm just using it wrong. Let's say I want to get the daily movie quote from www.imdb.com, what functions should I look into? Link to comment Share on other sites More sharing options...
Zedna Posted December 17, 2008 Share Posted December 17, 2008 Search in Helpfile for IE UDF Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Thu Posted December 17, 2008 Author Share Posted December 17, 2008 Search in Helpfile for IE UDFBig thanks, Zedna, I truly didn't know where to begin. The following 7 lines took me only an hour to write. It's not pretty, it's absolutely nothing special, but it's mine! Now I guess I know how it feels like to be a parent... CODE#include <IE.au3>$oIE = _IECreate ("http://www.imdb.com")$sText = _IEBodyReadText ($oIE)$Start = StringInStr($sText, "Movie/TV Quote of the Day")$End = StringInStr($sText, "From which TV show/Movie?")$Quote = StringMid($sText,$Start,$End-$Start)MsgBox(0, "The IMDB quote of the day:", $Quote)Please be my guest if anyone wants to point out what I can do more effectively. I know I will be back with more retarded questions soon enough. Link to comment Share on other sites More sharing options...
Zedna Posted December 17, 2008 Share Posted December 17, 2008 (edited) Look at _StringBetween()EDIT: Welcome to AutoIt comunity :-) Edited December 17, 2008 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now