![]() |
|
#1
|
|||
|
|||
Using mechanize to do website authenticationI am trying to write a web scraper and am having trouble accessing pages that require authentication. I am attempting to utilise the mechanize library, but am having difficulties. The site I am trying to login is http://www.princetonreview.com/Login3.aspx?uidbadge=
user: bugmenot2008@yahoo.com pass: letmeinalready Previously I did something similar to another site: schoolfinder.com. Here is my code for that: Python Code:
This method does not work on the Princeton Review site however. Interestingly I cannot even get mechanize to access the schoolfinder.com site. Here is the code I am using: Python Code:
This code is so short and I just cannot figure out what I am doing wrong. What is incorrect about this? Thank you in advance. Last edited by admin : 05-Sep-2008 at 08:17.
Reason: Please insert your example Python codes between [PY] and [/PY] tags
|
|||
|
#2
|
||||
|
||||
Re: Using mechanize to do website authenticationI wasn't even aware of the mechanize module until this post, hence I can't offer you any particular advice.
However, I can point you towards http://wwwsearch.sourceforge.net/mechanize/, in case you haven't looked at it yet. Unfortunately, it really doesn't say to much but it does offer some examples that may help you. Sorr I can't be more help. __________________
Start Programming with Python-A beginner's guide to programming and the Python language. ------------- Common Sense v2.0-Striving to make the world a little bit smarter. |
|
#3
|
|||
|
|||
Re: Using mechanize to do website authenticationI did see that page and unfortunately the documentation was not very helpful to me. I was just wondering if anyone else had experience with the mechanize library.
|
Recent GIDBlog
Install Adobe Flash - Without Administrator Rights by LocalTech
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Here Are 12 sure ways to launch your website for success | jackbdirty | Search Engine Optimization Forum | 7 | 30-May-2008 14:26 |
| Help appreciated in writing up a bid request for website development | Scott_Jensen | Webmaster / Web Designing Advertisements & Offers | 0 | 27-Feb-2007 16:08 |
| Techtas.com - Get a free website with loads of features now! | lizard | Free Web Hosting | 0 | 16-Nov-2006 14:47 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The