I need to access the html source code of a webpage
but it requires authentication how can I pass my username password and get it using python
the problem is for e.g. if I do this:
import requests
url='http://cuherp.chalkpad.in//Interface/index.php'
url_in='http://cuherp.chalkpad.in//Interface/Student/scIndex.php'
u='b1300*****'
p='jang******'
params={'Username':u,
'Password':p,
'Institute':'CSOET',
'Session':'2013-14'}
resp_1=requests.get(url,auth=(u,p))
resp_2=requests.get(url_in,auth=(u,p),cookies=resp_1.cookies)
here "url" is the login page and "url_in" is the one I need the html code for
but after running this "url_in.url" returns "url" itself i.e the login page which means i am still not inside
please help