You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Elementtree hasn't been updated in 7 years--and is not compatible with Python 3. Would you consider using a more well-maintained XML parser, such as lxml, or (my favorite) BeautifulSoup4?
The text was updated successfully, but these errors were encountered:
Unfortunately, all my work porting code from elementtree to lxml or BeautifulSoup has been non-trivial. It's not too hard, but these libraries work a little differently.
That said, I love BeautifulSoup. It makes accessing XML much more "pythonic."
For the Python 3 support, you might get almost all the way there by running the 2to3 conversion tool on your source files. Often, it's little things (like "print()") that keep something from being compatible with Python 3.
Elementtree hasn't been updated in 7 years--and is not compatible with Python 3. Would you consider using a more well-maintained XML parser, such as lxml, or (my favorite) BeautifulSoup4?
The text was updated successfully, but these errors were encountered: