Skip to content

Cannot transverse from clean_top_node to clean_doc or doc #497

@AndyTheFactory

Description

@AndyTheFactory

Issue by monstrfolk
Sun Dec 13 01:34:57 2020
Originally opened as codelucas/newspaper#862


Perhaps misunderstand the relationship from clean_top_node to clean_doc or doc, but cannot transverse from clean_top_node to clean_doc or doc.

For example, following will not work.

a = Article('https://somesite.com/some_article')
a.download()
a.parse()
print(a.clean_doc.getroottree().getpath(a.clean_top_node))

Expect to be able to print the path from clean_doc/doc to clean_top_node.

Metadata

Metadata

Assignees

No one assigned

    Labels

    PR-verifyHas a PR, must be checkedbugSomething isn't working

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions