So I need to extract some brainfuck code from some HTML and what I have been doing so far isn't working. The HTML looks like this
<div class="style7" style="text-align: justify; overflow: auto;">
<br />++++++++++[>++++++++++++>+++++++++++>++++++++++++>+++++++++++>++++++++++>++++++++++++>++++++++++>++++++++++>+++++++++++>+++++++++++>++++++++++>++++++++++++<<<<<<<<<<<<-]>-----.>++++.>---.>-.>+++.>+.>+++.>++.>+.>---.>-.>-----.<br /><br /><br />
</div>
I am using Python and BeautifulSoup. I can grab the div just fine from the whole document but I can't seem to get the entirety of the brainfuck from between the
tags.
How would I go about doing it? Thanks
EDIT:
After looking through what BeautifulSoup loads it seems to actually remove a large chunk of the code. The request content has it all there but the soup doesn't.
Would there be a better way to parse it besides BeautifulSoup? Maybe a regex on the original HTML?