Refresh, find, and e-mail?

Hey yall!

I’m looking to create a quick little script that will refresh my current Safari page, perform a find on the page for a certain string (“17” specifically), and then shoot me an e-mail notification if it turns one up. I can get so far as to refresh the page, but beyond that I am clueless. Any gurus out there mind taking a second out to help me?

You guys rock,