python - BeautifulSoup: Search from leaf to root to get the "deepest" elements first? -
As for a research project, I want to remove all the "documentation units" of a document unit in Python documentation
Example2: If there is no method or no section in the class In which they appear, so I have described above them and do not forget them. Note: This is not easy, but I would like to get them all into a list which has the same command as the original documentation. I tried it with a beautiful soup but I think that for this purpose I have to find "deep root" from the leaf to get the deepest elements - which are beautiful ( afaik) is not supported by Sundasub 4. But in reality this is not the main problem. I appreciate your point It seems that it is not possible . So what I did to solve this problem has to be repeated elements (which I was using using .descendants) repeatedly and then I have replaced nested-elements with a placeholder So that the change could make visible (using replace_with). As before I used to have dynasties, nested elements are also stored.
Comments
Post a Comment