Cookie or not..?

M

mrcoludk

Hello Group.

I am a Python noob, and need some help. I am trying to log in to website using python and parse info after login.

In a browser, this link will log me in and keep me loged in:
http://[domain].com/loginh.aspx?SID=[xxx]&USER=[xxx]&PW=[xxx]

(sorry for the tripple x, but it is actually not something nasty :) )


I normally do this


import os
import shutil
import utils
import urllib2

lobj = urllib2.urlopen('[URL-sorce]')
print lobj.read()


.... and then parse output, but i need to login to get all info.

Any input will be appreciated.
 
J

Joel Goldstick

Hello Group.

I am a Python noob, and need some help. I am trying to log in to website using python and parse info after login.

In a browser, this link will log me in and keep me loged in:
http://[domain].com/loginh.aspx?SID=[xxx]&USER=[xxx]&PW=[xxx]

(sorry for the tripple x, but it is actually not something nasty :) )


I normally do this


import os
import shutil
import utils
import urllib2

lobj = urllib2.urlopen('[URL-sorce]')
print lobj.read()


... and then parse output, but i need to login to get all info.

Any input will be appreciated.

You will need to understand a little about http protocol, and cookies.
Try starting here: http://docs.python-requests.org/en/latest/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top