mardi 7 février 2017

How to extract a part of data, that we get from website using url.open()

I wrote a Program that connects to this website

http://ift.tt/2kDjw5n

I need to parse it and get email in that website

url = http://ift.tt/2kDjw5n
data = urllib.urlopen(url).read()
for line in data:
    templine = line.strip()
    print templine

but it prints individual letters instead of words like

F
r
o
m

n
e
w
s

how to fix this please help me what to do,I need my program to print as lines

  • sorry about my language, this is my first question to post



Aucun commentaire:

Enregistrer un commentaire