Subversion Repositories SmartDukaan

Rev

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

Rev 1963 Rev 2082
Line 97... Line 97...
97
    this_url = ""
97
    this_url = ""
98
    
98
    
99
    if html.count("Our systems have detected unusual traffic from your computer network.") > 0:
99
    if html.count("Our systems have detected unusual traffic from your computer network.") > 0:
100
      print "Blocked by Google"
100
      print "Blocked by Google"
101
      self.breakAfterNextItr = True
101
      self.breakAfterNextItr = True
102
      return -1
102
      return -1, ""
103
    url = unicode(r'(<h3 class="r"><a href=")((https?):((//))+[\w\d:#@%/;$()~_?\+-=\\\.&]*)')
103
    url = unicode(r'(<h3 class="r"><a href=")((https?):((//))+[\w\d:#@%/;$()~_?\+-=\\\.&]*)')
104
    for google_result in re.finditer(url, html):
104
    for google_result in re.finditer(url, html):
105
      # print m.group()
105
      # print m.group()
106
      this_url = google_result.group()
106
      this_url = google_result.group()
107
      this_url = this_url[23:]
107
      this_url = this_url[23:]