Re: Urllib vs. FireFox

2008-10-28 Thread Gilles Ganault
On Fri, 24 Oct 2008 13:15:49 -0700 (PDT), Mike Driscoll <[EMAIL PROTECTED]> wrote: >On Oct 24, 2:53 pm, Rex <[EMAIL PROTECTED]> wrote: >> By the way, if you're doing non-trivial web scraping, the mechanize >> module might make your work much easier. You can install it with >> easy_install.http://ww

Re: Urllib vs. FireFox

2008-10-26 Thread Tim Roberts
Lie Ryan <[EMAIL PROTECTED]> wrote: > >Cookies? Yes, please. I'll take two. Chocolate chip. With milk. -- Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Urllib vs. FireFox

2008-10-25 Thread Lie Ryan
On Fri, 24 Oct 2008 20:38:37 +0200, Gilles Ganault wrote: > Hello > > After scratching my head as to why I failed finding data from a web > using the "re" module, I discovered that a web page as downloaded by > urllib doesn't match what is displayed when viewing the source page in > FireFox. >

Re: Urllib vs. FireFox

2008-10-24 Thread Mike Driscoll
On Oct 24, 2:53 pm, Rex <[EMAIL PROTECTED]> wrote: > Right. If you want to get the same results with your Python script > that you did with Firefox, you can modify the browser headers in your > code. > > Here's an example with > urllib2:http://vsbabu.org/mt/archives/2003/05/27/urllib2_setting_http

Re: Urllib vs. FireFox

2008-10-24 Thread Rex
Right. If you want to get the same results with your Python script that you did with Firefox, you can modify the browser headers in your code. Here's an example with urllib2: http://vsbabu.org/mt/archives/2003/05/27/urllib2_setting_http_headers.html By the way, if you're doing non-trivial web scr

Re: Urllib vs. FireFox

2008-10-24 Thread Stefan Behnel
Gilles Ganault wrote: > After scratching my head as to why I failed finding data from a web > using the "re" module, I discovered that a web page as downloaded by > urllib doesn't match what is displayed when viewing the source page in > FireFox. > > For instance, when searching Amazon for "Wargam

Urllib vs. FireFox

2008-10-24 Thread Gilles Ganault
Hello After scratching my head as to why I failed finding data from a web using the "re" module, I discovered that a web page as downloaded by urllib doesn't match what is displayed when viewing the source page in FireFox. For instance, when searching Amazon for "Wargames": URLLIB: http://www.am