-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
MarkupConverter - convert HTML documents into plain text #3988
Comments
If this logically fits in as a Converter then I can place a PR soon enough :) |
Hi @sebjwallace! This seems to be an interesting feature request and is somehow related to #3838. |
Is your feature request related to a problem? Please describe.
The Crawler component works great. However, once I've saved the HTML documents to disc I'd like to convert the markup into plain text. This is a similar feature request, however I believe it'll be useful to have a dedicated node to clean up markup in-memory. Typically we'd want to keep our source data in its raw state on disc. This allows a user to change the parameters of the converter to yield different conversions without mutating the source.
Describe the solution you'd like
MarkupConverter can use BeautifulSoup to exclude and/or include HTML tags. Given an input HTML document, a user can define that they want to exclude (link, style, script, etc.) Or they can define they'd only like paragraph tags. Allowing the user to define inclusive/exclusive sets allows flexibility of what kind of text they'd like to extract for their particular task.
Like the Markdown converter, the Markup converter can extract metadata from the header element.
The text was updated successfully, but these errors were encountered: