[Python-il] Help with python mechanize script
other at uv.hopto.org
Wed Mar 24 15:03:40 IST 2010
Its not a useragent problem, and yes, the cookies are saved across. I'm pretty sure its a bug in mechanize, but I am not able to find or solve it.
Thats why I'm asking for your help.
you tried using Firefox's User-Agent? Their servers may be doing
something different because they think you're using a different browser.
Also, make sure your second request contains the cookies issued in the first
On Mon, Mar 22, 2010 at 12:37 PM, Ido <other at uv.hopto.org> wrote:
>I'm trying to write a scrapper to read my billing
>stats from orange bill4u site using py-mechanize.
>Orange uses a hell
>of a lot of redirects in the process, and I'm not sure if there's a bug
>or I am doing something wrong.
>I've used wireshark to trace the
>login and redirects of the process using a normal browser,
>reason, at some point I'm getting a redirect to a different url which
>there I get an http 400 error.
>After trying to trace, I've found out small differences between the
>wireshark output of firefox and mechanize (in the url/cookies),
> link (br.open) is being invoked.
>I wish if someone could help out
>write a similar script (doesn't have to be with mechanize).
>is one of my attempts:
>br = Browser()
>resp = br.open("https://bill4u.orange.co.il/action/mainAction")
># fill form
>The links above are somewhat what happens when logging in with
> Get your new Email address!
>>Grab the Email name you've always wanted before someone else does!
>>Python-il mailing list
>Python-il at hamakor.org.il
New Email addresses available on Yahoo!
Get the Email name you've always wanted on the new @ymail and @rocketmail.
Hurry before someone else does!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-il