Sending cookies with python. When download with python

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • moishyyehuda@gmail.com

    #1

    Sending cookies with python. When download with python

    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.

  • Matimus

    #2
    Re: Sending cookies with python. When download with python

    On Jun 5, 9:14 am, moishyyeh...@gm ail.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

    Comment

    Working...