Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #12806

download pages using a cookies.txt file

From Jabba Laci <jabba.laci@gmail.com>
Date 2011-09-05 21:36 -0400
Subject download pages using a cookies.txt file
Newsgroups comp.lang.python
Message-ID <mailman.787.1315273029.27778.python-list@python.org> (permalink)

Show all headers | View raw


Hi,

I would like to download a page that requires authentication with
cookies. I've already figured out how to do it with wget (blog post
here: http://bit.ly/pp25LP). In short:
(1) extract cookies from Firefox's cookies.sqlite and store them in a text file
(2) wget --cookies=on --load-cookies=cookies.txt
--keep-session-cookies "http://..."

My question is: how to do it from Python? If possible, I want to avoid
making external calls to wget.

Thanks,

Laszlo

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

download pages using a cookies.txt file Jabba Laci <jabba.laci@gmail.com> - 2011-09-05 21:36 -0400

csiph-web