You are viewing a single comment's thread. Return to all comments →
def handle_comment(self, data): l = data.split("\n") print(">>> Single-line Comment") if len(l) <= 1 else print(">>> Multi-line Comment") [print(x) for x in l] def handle_data(self, data): if len(data.strip()) == 0: return print(">>> Data") print(data)
Seems like cookies are disabled on this browser, please enable them to open this website
HTML Parser - Part 2
You are viewing a single comment's thread. Return to all comments →