Exemplo n.º 1
0
 def is_valid_url(self, url):
     #print url
     ans = Robot.is_valid_url(self, url) and self.url_pattern.match(
         url) != None and not url.startswith(
             'http://www.ganji.com/fang1') and not url.startswith(
                 'http://help.ganji.com') and not url.startswith(
                     'http://club.ganji.com')
     #print ans
     return ans
Exemplo n.º 2
0
 def is_valid_url(self, url):
     return Robot.is_valid_url(self, url) and self.url_pattern.match(url) != None
Exemplo n.º 3
0
 def is_valid_url(self, url):
     return Robot.is_valid_url(self, url) and self.url_pattern.match(url) != None
Exemplo n.º 4
0
 def is_valid_url(self, url):
     #print url
     ans = Robot.is_valid_url(self, url) and self.url_pattern.match(url) != None and not url.startswith('http://www.ganji.com/fang1') and not url.startswith('http://help.ganji.com') and not url.startswith('http://club.ganji.com')
     #print ans
     return ans