How to search through online сhеss games using AppleScript or Automator?
Thank you for trying to help me but someone has already done it. This question can be marked as solved. Here is his script (all credit goes to him):

set retiList to {}
set theStart to 84094500    
set theEnd to 84094600   
repeat with gameRef from theStart to theEnd    
  set theScript to ("curl 'http://www.instantchess.com/?EXP=1&amp;GPI=" &amp; gameRef as string) &amp; "'"
  set theSource to do shell script theScript
  if theSource contains "reti" then
   set end of retiList to gameRef
  end if
end repeat
retiList