--> -->
 
 
IndexError
Python 2.4.3: /usr/bin/python
Sat Feb 4 03:49:29 2012

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /var/www/vhosts/geuzen.org/cgi-bin/shmoogle/shmoogle_new.cgi
  177         #print "short res_array length is: "+str(len(res_array))
  178 elif results_num >100:
  179         main_res_array=get_all_results(query,results_num)
  180         last_res_array=parse(result)
  181         #print "last_res_array length is: "+str(len(last_res_array))
main_res_array undefined, get_all_results = <function get_all_results>, query = 'tsila hassine', results_num = 600
 /var/www/vhosts/geuzen.org/cgi-bin/shmoogle/shmoogle_new.cgi in get_all_results(query='tsila hassine', results_num=600)
  110                 time.sleep(rand/2000)
  111                 result=get_results(query,i*100)
  112                 temp_res_array=parse(result)
  113                 res_array+=temp_res_array
  114                 temp_res_arrray=[]
temp_res_array = [], global parse = <function parse>, result = '<!doctype html><html itemscope itemtype="http://...assine","scd":10,"sce":5})</script></body></html>'
 /var/www/vhosts/geuzen.org/cgi-bin/shmoogle/shmoogle_new.cgi in parse(result='<!doctype html><html itemscope itemtype="http://...assine","scd":10,"sce":5})</script></body></html>')
   88 def parse(result):
   89         header=re.compile('<!--a-->')
   90         result_2=header.split(result)[1]
   91         #outfile.write(header.split(result)[0])
   92         #result_1=header.split(result)
result_2 undefined, header = <_sre.SRE_Pattern object>, header.split = <built-in method split of _sre.SRE_Pattern object>, result = '<!doctype html><html itemscope itemtype="http://...assine","scd":10,"sce":5})</script></body></html>'

IndexError: list index out of range
      args = ('list index out of range',)