Traceback (most recent call last):


 "/Users/eric/Library/Application Support/JetBrains/Toolbox/apps/PyCharm-P/ch-0/171.4694.67/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 1591, in <module>

globals = debugger.run(setup['file'], None, None, is_module)


 "/Users/eric/Library/Application Support/JetBrains/Toolbox/apps/PyCharm-P/ch-0/171.4694.67/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 1018, in run

pydev_imports.execfile(file, globals, locals)
# execute the script


 "/Users/eric/Library/Application Support/JetBrains/Toolbox/apps/PyCharm-P/ch-0/171.4694.67/PyCharm.app/Contents/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile

exec(compile(contents+"\n", file, 'exec'), glob, loc)


 "/Users/eric/dev/HtmlExtractor/src/main.py", line 14, in <module>

text = fulltext(html)


 "/usr/local/lib/python3.6/site-packages/newspaper/api.py", line 91, in fulltext

top_node = extractor.post_cleanup(top_node)


 "/usr/local/lib/python3.6/site-packages/newspaper/extractors.py", line 1043, in post_cleanup

node = self.add_siblings(top_node)


 "/usr/local/lib/python3.6/site-packages/newspaper/extractors.py", line 872, in add_siblings

baseline_score_siblings_para = self.get_siblings_score(top_node)


 "/usr/local/lib/python3.6/site-packages/newspaper/extractors.py", line 929, in get_siblings_score

nodes_to_check = self.parser.getElementsByTag(top_node, tag='p')


 "/usr/local/lib/python3.6/site-packages/newspaper/parsers.py", line 117, in getElementsByTag

elems = node.xpath(selector, namespaces={"re": NS})
AttributeError: 'NoneType' object has no attribute 'xpath'

Traceback (most recent call last):


 "<stdin>", line 1, in <module>


 "/usr/local/lib/python3.5/dist-packages/uncompyle6/main.py", line 109, in decompile

is_pypy=is_pypy)


 "/usr/local/lib/python3.5/dist-packages/uncompyle6/semantics/pysource.py", line 2266, in code_deparse

deparsed.gen_source(deparsed.ast, co.co_name, customize)


 "/usr/local/lib/python3.5/dist-packages/uncompyle6/semantics/pysource.py", line 2110, in gen_source

self.println(self.text)


 "/usr/local/lib/python3.5/dist-packages/uncompyle6/semantics/pysource.py", line 398, in println

self.write(*data)


 "/usr/local/lib/python3.5/dist-packages/uncompyle6/semantics/pysource.py", line 394, in write

self.f.write(out)
AttributeError: 'NoneType' object has no attribute 'write'
