![]() |
|
#1
|
|||
|
|||
Help with cookies/authenticationHi I am trying to pull some data from a Web site: schoolfinder.com
The issue is that I want to use the advanced search feature which requires logging into the Web site. I have a username and password, however I want to connect programmatically from Python. I have done data capture from the Web before so the only new thing here to me is the authentication stuff. I need cookies as this page describes: schoolfinder.com/login/login.asp I already know how to enter POST/GET data to a request, but how do I deal with cookies/authentication? I have read a few articles without success: urllib2: voidspace.org.uk/python/articles/urllib2.shtml#id6 urllib2 Cookbook: personalpages.tds.net/~kent37/kk/00010.html basic authentication: voidspace.org.uk/python/articles/authentication.shtml#id19 cookielib: voidspace.org.uk/python/articles/cookielib.shtml Is there some other resource I am missing? Is it possible that someone could setup a basic script that would allow me to connect to schoolfinder.com with my username and password? My username is "greenman", password is "greenman". All I need to know is how to access pages as if I logged in by Web browser. Thank you very much. |
|||
|
#2
|
|||
|
|||
Re: Help with cookies/authenticationHave you gotten anywhere with this yet?
|
|
#3
|
|||
|
|||
Re: Help with cookies/authenticationI was able to solve this problem after a lot more research and tinkering. Here is the solution for anyone interested.
CPP / C++ / C Code:
|
Recent GIDBlog
Problems with the Navy (Enlisted) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The