python 爬虫

import re
import urllib2
 
response = urllib2.urlopen('http://music.jd.com/60059228.html').read()
 
songs = re.findall('', response)
 
for song in songs:
    print song

输出:

Falling Slowly(Steve Kazee)
My Love(Westlife)
You Raise Me Up(Westlife)
The Show(Lenka)
Trouble Is A Friend(Lenka)
Makin Love Out of Nothing At All(Air Supply)
All Out of Love(Air Supply)
Eternal Flame(Suzanna Hoffs)
Moonlight Shadow(Groove Coverage)
Frosty The Snowman(Fiona Apple)
Auld Lang Syne(Buddy)
Love in December(Club 8)
Whataya Want From Me(Adam Lambert)
She Will Be Loved(Maroon 5)
The Story(Brandi Carlile)
That Year(Brandi Carlile)
Wasted(Brandi Carlile)
When You're Gone(Avril Lavigne)
Wish You Were Here(Avril Lavigne)
Leave Right Now(Will Young)
Jealousy(Will Young)
I Dreamed A Dream(Susan Boyle)
Mad World(Susan Boyle)
Memory(Susan Boyle)
Take Me Home,Country Roads(John Denver)
Jingle Bells(John Denver)
singer/songwriter(Egil Olsen)
Valder Fields(Tamas Wells)
Vendredi(Tamas Wells)
Blowin'In The Wind(Bob Dylan)
Knockin'On Heavens Door(Bob Dylan)
I Love You(Stewart Mac)
Someone Like You(Agapornis)
Rolling in the Deep (vocal version)(The Piano)
Firework (Glee Cast Version)(Glee Cast)
Teenage Dream (Glee Cast Version)(Glee Cast)
Poker Face(Meg Pfeiffer)
Call Me Maybe (Glee Cast Version)(Glee Cast)
Stronger(What Doesn't Kill You)(Kelly Clarkson)
Because Of You(Kelly Clarkson)
Just One Last Dance(Sarah Connor)
Living To Love You(Single Version)(Sarah Connor)
Christmas In My Heart(Sarah Connor)
Cry On My Shoulder(Overflow)
Marry You(Bruno Mars)
Set Fire To The Rain(Adele)
What Makes You Beautiful(单向乐队)
FucKin' Perfect(P!nk)
Get The Party Started(P!nk)
You Give Love A Bad Name(新声驾到)

你可能感兴趣的:(python)