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
def is_valid_url(self, url): return Robot.is_valid_url(self, url) and self.url_pattern.match(url) != None
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