Hi I am trying to pull some data from a Web site: http://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: http://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:
http://www.voidspace.org.uk/python/articles/urllib2.shtml#id6
urllib2 Cookbook:
http://personalpages.tds.net/~kent37/kk/00010.html
basic authentication:
http://www.voidspace.org.uk/python/articles/authentication.shtml#id19
cookielib:
http://www.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.