prowong / lrcdis

Automatically exported from code.google.com/p/lrcdis
1 stars 0 forks source link

无法下载歌词 #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
我用的是最新版本的lrcdis: svn-090315
但是在播放任何歌曲的时候出现了以下问题:

1. 我用的播放器是: mocp
2. 我用的显示模式是: osd

具体的现象是:
所有歌词都无法下载,检查了下发现是SOGOU_URI下载歌词的时��
�被sogou给ban掉了
http://mp3.sogou.com/gecisearch.so?query=歌名
该链接得到的页面如附件所示

Original issue reported on code.google.com by wbshang on 17 Mar 2009 at 11:32

Attachments:

GoogleCodeExporter commented 9 years ago
我这里无法重现。
不知道sogou是按照什么规则来ban的。
调用的次数并不多啊,只是每换一首歌才获取一次。
如果是按照UserAgent的话还是有办法的……

Original comment by oldh...@gmail.com on 17 Mar 2009 at 1:24

GoogleCodeExporter commented 9 years ago
我也不知道怎么回事,反正我这里还是会得到那个被ban掉的��
�面
换了BAIDU_URI函数,有些歌词可以下载了,不过百度的lrc歌词��
�索成功率太低了 :(

Original comment by wbshang on 17 Mar 2009 at 4:25

GoogleCodeExporter commented 9 years ago
搜狗在你下载比较频繁的时候确实会ban,我以前就遇到过。

Original comment by xioooli@gmail.com on 18 Mar 2009 at 5:15

GoogleCodeExporter commented 9 years ago
那看来是没办法了
最好能在配置文件里面选择用sogou还是baidu下载(能有其他的�
��好)

Original comment by wbshang on 18 Mar 2009 at 5:57

GoogleCodeExporter commented 9 years ago
好提议

Original comment by xioooli@gmail.com on 18 Mar 2009 at 8:25

GoogleCodeExporter commented 9 years ago
http://woaixuxian.blogspot.com/2009/05/lrcdis.html

lrcdis可以在LINUX上面实现桌面歌词效果,其歌词文件是通过搜
狗搜索得来的,由于搜狗现在封
杀爬虫类客户端的请求,需要输入验证码。对于这种情况,��
�们可以使用定制WGET来骗过搜狗引
擎,如下:

wget的配置文件.wgetrc保存在当前用户目录下,如果没有这个文
件,你可以新建一个,其内容为:

header = User-Agent: Mozilla/5.0 (X11; U; Linux i686; zh-CN; rv:1.9.0.9)
Gecko/2009042113 Ubuntu/8.10 (intrepid) Firefox/3.0.9
header = Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
header = Connection: keep-alive
header = Keep-Alive: 300
cookies = on

Original comment by woaixux...@gmail.com on 5 May 2009 at 3:20

GoogleCodeExporter commented 9 years ago
启用cookies支持,解决了此bug。

Original comment by bones7...@gmail.com on 24 Aug 2009 at 10:01