Subversion Repositories SmartDukaan

Rev

Rev 1942 | Rev 1958 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1942 Rev 1943
Line 66... Line 66...
66
 
66
 
67
  def start(self):
67
  def start(self):
68
    i = 0
68
    i = 0
69
    for search_string in self.searchStrings:
69
    for search_string in self.searchStrings:
70
      i += 1
70
      i += 1
71
      print i
-
 
72
      if i%30 == 0:
71
      if i%30 == 0:
73
        time.sleep(random.randint(60*2, 60*10)) # sleep for 2 to 10 min after 20 queries
72
        time.sleep(random.randint(60*2, 60*10)) # sleep for 2 to 10 min after 20 queries
74
      self.find_google_position(search_string)
73
      self.find_google_position(search_string)
75
      if self.db_mode:
74
      if self.db_mode:
76
        time.sleep(random.randint(0, self.searchStrinfMaxSleep))
75
        time.sleep(random.randint(0, self.searchStrinfMaxSleep))