Skip to content
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

Add options to minimize parsed html text #354

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

aleks-v-k
Copy link

The PR is to add the possibility to minimize text extracted from HTML:

  • merge several space symbols to one
  • remove table formatting.

The main reason for these changes: the parser is OOM killed on some large html files (there are a lot of spaces + a table).

Would you like to accept such changes? If yes, then I will add tests to cover the new code.

@traverseda
Copy link
Collaborator

Hello, I've recently been made a maintainer of this project. I'd be interested in these changes. I'd also be interested in a selectolax-based text extractor if you were feeling adventurous.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants