python 爬虫

import re
import urllib2
 
response = urllib2.urlopen('http://music.jd.com/60059228.html').read()
 
songs = re.findall('<td class="player-name" skuid="[0-9]+" s_name="([^"]+)" s_url="[^"]+" src="[^"]+">', 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(新声驾到)
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值