I have a script which reads data from a webpage using HTMLParser:
import urllib
from HTMLParser import HTMLParser
import re
class get_HTML_Info(HTMLParser):
def handle_data(self, data):
print data
adib = urllib.urlopen('http://www.bulldoghax.com/secret/spinner')
htmlsource = adib.read()
adib.close()
parser = get_HTML_Info()
parser.feed(str(htmlsource))
I end up with two set of data like this:
bulldoghax
8530330882
In the terminal, I just want to extract only that number and set it to a string in python.