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 programmaticall y 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:
urllib2 Cookbook:
basic authentication:
cookielib:
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.co m 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.
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 programmaticall y 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:
urllib2 Cookbook:
basic authentication:
cookielib:
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.co m 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.
Comment