Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot transverse from clean_top_node to clean_doc or doc #862

Open
monstrfolk opened this issue Dec 13, 2020 · 1 comment
Open

Cannot transverse from clean_top_node to clean_doc or doc #862

monstrfolk opened this issue Dec 13, 2020 · 1 comment

Comments

@monstrfolk
Copy link

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.

@monstrfolk
Copy link
Author

Please see #863 with a fix for this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant