--> -->
 
 
<type 'exceptions.TypeError'>
Python 2.6.6: /usr/bin/python
Wed Jul 30 21:13:10 2014

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 in ()
  188         #print "short res_array length is: "+str(len(res_array))
  189 elif results_num >100:
  190         main_res_array=get_all_results(query,results_num)
  191         last_res_array=parse(result)
  192         #print "last_res_array length is: "+str(len(last_res_array))
main_res_array undefined, get_all_results = <function get_all_results>, query = '\xe5\xa5\xb4\xe9\x9a\xb7\xe3\x80\x80\xe7\x84\xa1\xe6\x96\x99\xe5\x8b\x95\xe7\x94\xbb', results_num = 267
 /var/www/vhosts/geuzen.org/cgi-bin/shmoogle/shmoogle_new.cgi in get_all_results(query='\xe5\xa5\xb4\xe9\x9a\xb7\xe3\x80\x80\xe7\x84\xa1\xe6\x96\x99\xe5\x8b\x95\xe7\x94\xbb', results_num=267)
  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 = None
 /var/www/vhosts/geuzen.org/cgi-bin/shmoogle/shmoogle_new.cgi in parse(result=None)
   88 def parse(result):
   89         header=re.compile('<div id="res">')
   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 = None

<type 'exceptions.TypeError'>: expected string or buffer
      args = ('expected string or buffer',)
      message = 'expected string or buffer'