How can I access specific parts of a string in a txt file with python?
<p>So I have a large text file with a lot of lines of HTML that was nicely created by a webcrawler. It's full of lines that look like the code below. I'm wondering, How can I just get a new text file full of just the "desired text" instead of the entire line of html code? </p>

<pre><code>b'&lt;b&gt;&lt;a href="example.html" target="_blank"&gt;Desired Text 1&lt;/a&gt;&lt;/b&gt;'
b'&lt;b&gt;&lt;a href="example.html" target="_blank"&gt;Desired Text 2&lt;/a&gt;&lt;/b&gt;'
b'&lt;b&gt;&lt;a href="example.html" target="_blank"&gt;Desired Text 3&lt;/a&gt;&lt;/b&gt;'
b'&lt;b&gt;&lt;a href="example.html" target="_blank"&gt;Desired Text 4&lt;/a&gt;&lt;/b&gt;'
b'&lt;b&gt;&lt;a href="example.html" target="_blank"&gt;Desired Text 5&lt;/a&gt;&lt;/b&gt;'
b'&lt;b&gt;&lt;a href="example.html" target="_blank"&gt;Desired Text 6&lt;/a&gt;&lt;/b&gt;'
</code></pre>