By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,173 Members | 796 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,173 IT Pros & Developers. It's quick & easy.

Sending cookies with python. When download with python

P: n/a
I need to download files off a password protected website. So if I try
to download files off the site with python I will be blocked. Is there
anyway to send cookies with python. So I will be authenticated.

Jun 5 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Jun 5, 9:14 am, moishyyeh...@gmail.com wrote:
I need to download files off a password protected website. So if I try
to download files off the site with python I will be blocked. Is there
anyway to send cookies with python. So I will be authenticated.
Yes. I haven't done it but I know you should be looking at urllib2 and
cookielib. I'm sure you can find some examples online. Dive Into
Python (google it) has some examples that may help you get started
with more general purpose use of urllib2.

Matt

Jun 5 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.