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

Too Much characters to send to discord #2

Open
Unic-X opened this issue Mar 31, 2021 · 1 comment
Open

Too Much characters to send to discord #2

Unic-X opened this issue Mar 31, 2021 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@Unic-X
Copy link
Owner

Unic-X commented Mar 31, 2021

Need to parse and make the character count<2000

The character count and there is no parsing of the HTML done the raw code sends about 50k+ characters in the raw JSON result.

Parsing can be achieved via:

  1. bs4(Slowest/Can achieve line counts)
  2. html2text(Not so fast/Robust)
  3. nltk(Fastest/Not so robust)

https://github.com/Unic-X/Dalit-Bot/blob/d3141c30e84c6e8bb44d4f0a9a0c7f20d6045d10/commands/Fandom/dark_souls.py#L103-L112

@Unic-X Unic-X added the help wanted Extra attention is needed label Mar 31, 2021
@natto1784
Copy link

get help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants