Here is another little snippet I used to scrape yelp before. It involved polling for a specific element on the page, if you can inject or find jQuery, this is pretty light and simple. edit: Should note that jQuery is less than necessary for this (since I'm sure someone would have said it right after I posted this), just makes me have to type less crap :)
https://gist.github.com/91bananas/5644737