如何 python实现下载功能

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

如何 python实现下载功能

free.wang
我想用python来实现这个链接的下载。 请问如何实现?  有相应的LIB么?
 
谢谢了

--
deSign thE  fuTure

_______________________________________________
python-chinese
Post: send [hidden email]
Subscribe: send subscribe to [hidden email]
Unsubscribe: send unsubscribe to  [hidden email]
Detail Info: http://python.cn/mailman/listinfo/python-chinese
Reply | Threaded
Open this post in threaded view
|

Re: 如何 python实现下载功能

Leo Jay
2008/1/20 小龙 <[hidden email]>:
> 比如有1个MP3的url   http://down.zzbs.com.cn/DownLoad/MP3/711.mp3
> 我想用python来实现这个链接的下载。 请问如何实现?  有相应的LIB么?
>
> 谢谢了
>

urllib

--
Best Regards,
Leo Jay
_______________________________________________
python-chinese
Post: send [hidden email]
Subscribe: send subscribe to [hidden email]
Unsubscribe: send unsubscribe to  [hidden email]
Detail Info: http://python.cn/mailman/listinfo/python-chinese
Reply | Threaded
Open this post in threaded view
|

Re: 如何 python实现下载功能

leopay
In reply to this post by free.wang
urllib.urlretrieve(urlstring,filename=None,reporthook=None,data=None)
 
 
 

 
On 1/20/08, 小龙 <[hidden email]> wrote:
比如有1个MP3的url   <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://down.zzbs.com.cn/DownLoad/MP3/711.mp3" target="_blank">http://down.zzbs.com.cn/DownLoad/MP3/711.mp3
我想用python来实现这个链接的下载。 请问如何实现?  有相应的LIB么?
 
谢谢了

--
deSign thE  fuTure

_______________________________________________
python-chinese
Post: send [hidden email]
Subscribe: send subscribe to [hidden email]
Unsubscribe: send unsubscribe to  [hidden email]
Detail Info: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://python.cn/mailman/listinfo/python-chinese" target="_blank"> http://python.cn/mailman/listinfo/python-chinese


_______________________________________________
python-chinese
Post: send [hidden email]
Subscribe: send subscribe to [hidden email]
Unsubscribe: send unsubscribe to  [hidden email]
Detail Info: http://python.cn/mailman/listinfo/python-chinese
Reply | Threaded
Open this post in threaded view
|

Re: 如何 python实现下载功能

free.wang
万分感谢
--
deSign thE  fuTure

_______________________________________________
python-chinese
Post: send [hidden email]
Subscribe: send subscribe to [hidden email]
Unsubscribe: send unsubscribe to  [hidden email]
Detail Info: http://python.cn/mailman/listinfo/python-chinese
Reply | Threaded
Open this post in threaded view
|

Re: 如何 python实现下载功能

yuan xuan
好多网站现在防爬虫了。
不晓得有没有什么应对之法?

在08-1-20,小龙 <[hidden email]> 写道:
万分感谢
--
deSign thE  fuTure

_______________________________________________
python-chinese
Post: send [hidden email]
Subscribe: send subscribe to [hidden email]
Unsubscribe: send unsubscribe to   [hidden email]
Detail Info: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://python.cn/mailman/listinfo/python-chinese" target="_blank"> http://python.cn/mailman/listinfo/python-chinese


_______________________________________________
python-chinese
Post: send [hidden email]
Subscribe: send subscribe to [hidden email]
Unsubscribe: send unsubscribe to  [hidden email]
Detail Info: http://python.cn/mailman/listinfo/python-chinese
Reply | Threaded
Open this post in threaded view
|

Re: 如何 python实现下载功能

Jiahua Huang
在 http header 伪造 user-agent 和 Referer: URL

2008/1/22 yuan xuan <[hidden email]>:
> 好多网站现在防爬虫了。
> 不晓得有没有什么应对之法?
>
_______________________________________________
python-chinese
Post: send [hidden email]
Subscribe: send subscribe to [hidden email]
Unsubscribe: send unsubscribe to  [hidden email]
Detail Info: http://python.cn/mailman/listinfo/python-chinese
Reply | Threaded
Open this post in threaded view
|

Re: 如何 python实现下载功能

Zhou, Yunqing
In reply to this post by yuan xuan
对症下药,模拟浏览器行为咯

在 08-1-22,yuan xuan<[hidden email]> 写道:

> 好多网站现在防爬虫了。
> 不晓得有没有什么应对之法?
>
> 在08-1-20,小龙 <[hidden email]> 写道:
> >
> > 万分感谢
> > --
> > deSign thE  fuTure
> > _______________________________________________
> > python-chinese
> > Post: send [hidden email]
> > Subscribe: send subscribe to
> [hidden email]
> > Unsubscribe: send unsubscribe to
> [hidden email]
> > Detail Info:
> http://python.cn/mailman/listinfo/python-chinese
> >
>
>
> _______________________________________________
> python-chinese
> Post: send [hidden email]
> Subscribe: send subscribe to
> [hidden email]
> Unsubscribe: send unsubscribe to
> [hidden email]
> Detail Info:
> http://python.cn/mailman/listinfo/python-chinese
>
_______________________________________________
python-chinese
Post: send [hidden email]
Subscribe: send subscribe to [hidden email]
Unsubscribe: send unsubscribe to  [hidden email]
Detail Info: http://python.cn/mailman/listinfo/python-chinese
Reply | Threaded
Open this post in threaded view
|

Re: 如何 python实现下载功能

free.wang
In reply to this post by Jiahua Huang
防爬虫的话, 那他不想被搜索引擎搜录了?

--
deSign thE  fuTure

_______________________________________________
python-chinese
Post: send [hidden email]
Subscribe: send subscribe to [hidden email]
Unsubscribe: send unsubscribe to  [hidden email]
Detail Info: http://python.cn/mailman/listinfo/python-chinese
Reply | Threaded
Open this post in threaded view
|

Re: 如何 python实现下载功能

Wayne-39
爬虫有协议的,而且爬虫一般也不会去下载链接的文件

在08-1-24,小龙 <[hidden email]> 写道:
防爬虫的话, 那他不想被搜索引擎搜录了?

--
deSign thE  fuTure

_______________________________________________
python-chinese
Post: send [hidden email]
Subscribe: send subscribe to [hidden email]
Unsubscribe: send unsubscribe to   [hidden email]
Detail Info: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://python.cn/mailman/listinfo/python-chinese" target="_blank"> http://python.cn/mailman/listinfo/python-chinese



--
wayne
_______________________________________________
python-chinese
Post: send [hidden email]
Subscribe: send subscribe to [hidden email]
Unsubscribe: send unsubscribe to  [hidden email]
Detail Info: http://python.cn/mailman/listinfo/python-chinese