def __eq__(self, other):
    return (isinstance(other, type(self)) and (self.page.url == other.page.url))
def __eq__(self, other):
    return (isinstance(other, type(self)) and (self.page.url == other.page.url))