getting specific text from a web page

i know this has probably been asked alot but how to you get specific text from a web page and…say…display it in a dialog. the url is http://www.macupdate.com/info.php/id/22076 and i want to get the number of downloads i have and display them in a dialog.

This works for me…

(* Read the html of the file *)
set theURL to "http://www.macupdate.com/info.php/id/22076"
set HTMLSource to (do shell script "curl " & theURL)

(* Chop off all of the text before the number *)
set AppleScript's text item delimiters to {"Downloads:</td><td class='value'>"}
set HTMLSource2 to text item 2 of HTMLSource

(* Chop off all of the text after the number *)
set AppleScript's text item delimiters to {"<"}
set DownloadCount to text item 1 of HTMLSource2

(* Set out delimiters back to normal *)
set AppleScript's text item delimiters to {""}

(* Display our dialog *)
display dialog ("MiniTunes has been downloaded \"" & DownloadCount & "\" times!") buttons {"Dude!", "Sweet!"}

If they decide to change their html source, you’ll have to change you code to account for that later.

j

Finally, this is what I needed. I made an app that gives the info for my clans servers on CoD:UO. Thanks jobu.

perfect! thanks!!!