MCPcopy Create free account
hub / github.com/LinkedInLearning/learning-python-2896241 / main

Function main

Ch5 - Internet Data/htmlparsing_start.py:18–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16 pass
17
18def main():
19 # instantiate the parser and feed it some HTML
20 parser = MyHTMLParser()
21
22 f = open("samplehtml.html")
23 if f.mode == "r":
24 contents = f.read() # read the entire file
25 parser.feed(contents)
26
27if __name__ == "__main__":
28 main()

Callers 1

Calls 1

MyHTMLParserClass · 0.70

Tested by

no test coverage detected