0

I'm trying to download a file from a website which requires log-in. By command line it can easily be done via

curl --proxy-anyauth -p -c cookie -u user:psw -L url > file.ext

Any advices on how to do that in python? Thank you

1

1 Answer 1

0

I have never used this before however I think this could work.
Here is the link to PyCurl library

http://pycurl.sourceforge.net

Sign up to request clarification or add additional context in comments.

3 Comments

google.co.uk/… . Wonders what a simple google search does!
Thanks, I tried PyCurl, but in the end i choose to use requests. requests.get(url, auth=(user, pWord)) seems a far clearer way to me.
Ok. Glad you found something you liled

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.