Closed micahlt closed 5 years ago
pip install beautifulsoup4
and pip install lxml
then from bs4 import BeautifulSoup
and parser = BeautifulSoup(etcetc..get_message_html(), "lxml")
Wow, this project is still active! ;-) All right, I didn't know that the text
would need to be specified. Thanks for the help!
I'm using
scratchapi
in a virtual environment (repl.it) and using it to generate my message page HTML using the commandprint(scratchapi.ScratchUserSession.messages.get_message_html())
. Oddly, this generates the response<Response [200]>
which sounds like an HTML error. I checked out some old issues, and #15 @PolyEdge stated that an HTML parser would be needed to view that kind of data. I attempted to install thehtml
package, but that doesn't solve anything. Help?