HTML parser import issues
<p>So I'm trying to make a web crawler in python using HTMLParser and urllib3 in python. Currently I have two different import problems the first being</p>

<pre><code>import html.parser
import urllib

urlText = []

#Define HTML Parser
class parseText(HTMLParser.HTMLParser):

def handle_data(self, data):
    if data != '\n':
        urlText.append(data)


#Create instance of HTML parser
lParser = parseText()

thisurl = "http://www-rohan.sdsu.edu/~gawron/index.html"
#Feed HTML file into parser
lParser.feed(urllib.urlopen(thisurl).read())
lParser.close()
for item in urlText:
    print (item)
</code></pre>

<p>and with this code it returns an error in the visual studio error box</p>

<pre><code>name 'HTMLParser' is not defined
</code></pre>

<p>and the second option is the exact same but with import HTMLParser instead of html.parser</p>

<pre><code>import HTMLParser
import urllib

urlText = []

#Define HTML Parser
class parseText(HTMLParser.HTMLParser):

def handle_data(self, data):
    if data != '\n':
        urlText.append(data)


#Create instance of HTML parser
lParser = parseText()

thisurl = "http://www-rohan.sdsu.edu/~gawron/index.html"
#Feed HTML file into parser
lParser.feed(urllib.urlopen(thisurl).read())
lParser.close()
for item in urlText:
    print (item)
</code></pre>

<p>which returns the error </p>

<pre><code>No module named 'markupbase'
</code></pre>

<p>I'm losing my mind with the packages. Does anyone know a fix or see a problem.
Ps. I'm running this in Visual studio 2016 and am in Python 3.5</p>