New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modification HTMLParser.py #46004
Comments
Hello my name is Diego, I needed to parse HTML to retrieve only text, def __init__(self,datos):
HTMLParser.HTMLParser.__init__(self)
self.feed(datos)
self.close()
def handle_data(self,data):
return data
parser = ParsearHTML(onTmp)
data = parser.feed(onTmp)
And changes in the class are attached. Thank you very much. Diego. |
---------- Forwarded message ---------- New submission from diego: Hello my name is Diego, I needed to parse HTML to retrieve only text, def __init__(self,datos):
HTMLParser.HTMLParser.__init__(self)
self.feed(datos)
self.close()
def handle_data(self,data):
return data
parser = ParsearHTML(onTmp)
data = parser.feed(onTmp)
And changes in the class are attached. Thank you very much. Diego. components: None Tracker <report@bugs.python.org> |
This is not a bug, just a comment of a code you did. If you think that there's actually a problem in HTMLParser.py, tell us When submitting changes, it's very useful to send the diff only, as in a Thanks! |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: