def check(self, url):
    '\n        check the url based on self._re_black_list and self._re_white_list\n        '
    for re_black in self._re_black_list:
        if re_black.search(url):
            return False
    for re_white in self._re_white_list:
        if re_white.search(url):
            return True
    return (False if self._re_white_list else True)
check the url based on self._re_black_list and self._re_white_list
def check(self, url):
    '\n        \n        '
    for re_black in self._re_black_list:
        if re_black.search(url):
            return False
    for re_white in self._re_white_list:
        if re_white.search(url):
            return True
    return (False if self._re_white_list else True)