def isempty(result):
if isinstance(result, list):<EOL><INDENT>for element in result:<EOL><INDENT>if isinstance(element, list):<EOL><INDENT>if not isempty(element):<EOL><INDENT>return False<EOL><DEDENT><DEDENT>else:<EOL><INDENT>if element is not None:<EOL><INDENT>return False<EOL><DEDENT><DEDENT><DEDENT><DEDENT>else:<EOL><INDENT>if result is not None:<EOL><INDENT>return False<EOL><DEDENT><DEDENT>return True<EOL>
Finds out if a scraping result should be considered empty.