Discord bot repeats itself and spams HTML code when requesting website data. #6546
Unanswered
sirquackiii
asked this question in
Q&A
Replies: 1 comment
-
This is for the discord.py library, not Other than that, this seems to do with external libraries rather than discord.py -- so it's off-topic here. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
So I am making a discord bot with a command to do HTTP requests via beautifulsoup. Right now it's supposed to get the first
<h1>
tag and prints it in bold, and it will then get the first<p>
tag and print it as well. In the code, I ask for it to get the text of the tags specifically. But when I ask it to get the text from wikipedia, it repeats itself, prints out HTML code, and just goes nuts.I tried the exact same code by just printing it to a terminal and it works perfectly fine.
Here is my code:
I am not sure what's going on here
Beta Was this translation helpful? Give feedback.
All reactions