Пример #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
Пример #2
0
 def is_valid_url(self, url):
     return Robot.is_valid_url(self, url) and self.url_pattern.match(url) != None
Пример #3
0
 def is_valid_url(self, url):
     return Robot.is_valid_url(self, url) and self.url_pattern.match(url) != None
Пример #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