Difference between revisions of "xml.etree.ElementTree Module"

From GM-RKB
Jump to: navigation, search
m (Remove links to pages that are actually redirects to this page.)
m (Remove links to pages that are actually redirects to this page.)
 
Line 12: Line 12:
 
=== 2017 ===
 
=== 2017 ===
 
* ([[Heaton, 2017]]) ⇒ [[Jeff Heaton]]. ([[2017]]). “[http://heatonresearch.com/2017/03/03/python-basic-wikipedia-parsing.html Reading Wikipedia XML Dumps with Python]." Blog post
 
* ([[Heaton, 2017]]) ⇒ [[Jeff Heaton]]. ([[2017]]). “[http://heatonresearch.com/2017/03/03/python-basic-wikipedia-parsing.html Reading Wikipedia XML Dumps with Python]." Blog post
** QUOTE: … The code below shows you the beginning of this file. As you can see the file is made up of page tags that contain revision tags. … To read this file it is important that the XML is streamed and not read directly into memory as a DOM parser might do. The [[xml.etree.ElementTree class]] can be used to do this. The following imports are needed for this example. For the complete source code see the following [https://raw.githubusercontent.com/jeffheaton/article-code/master/python/wikipedia/wiki-basic-stream.py GitHub link]. ...
+
** QUOTE: … The code below shows you the beginning of this file. As you can see the file is made up of page tags that contain revision tags. … To read this file it is important that the XML is streamed and not read directly into memory as a DOM parser might do. The [[xml.etree.ElementTree Module|xml.etree.ElementTree class]] can be used to do this. The following imports are needed for this example. For the complete source code see the following [https://raw.githubusercontent.com/jeffheaton/article-code/master/python/wikipedia/wiki-basic-stream.py GitHub link]. ...
  
 
----
 
----
 
__NOTOC__
 
__NOTOC__
 
[[Category:Concept]]
 
[[Category:Concept]]

Latest revision as of 20:45, 23 December 2019

An xml.etree.ElementTree Module is a Python library within xml.etree.



References

2018

2017

  • (Heaton, 2017) ⇒ Jeff Heaton. (2017). “Reading Wikipedia XML Dumps with Python." Blog post
    • QUOTE: … The code below shows you the beginning of this file. As you can see the file is made up of page tags that contain revision tags. … To read this file it is important that the XML is streamed and not read directly into memory as a DOM parser might do. The xml.etree.ElementTree class can be used to do this. The following imports are needed for this example. For the complete source code see the following GitHub link. ...