Can python do this? How?

Thread Solved

Join Date: May 2005
Posts: 1
Reputation: ddwyer50 is an unknown quantity at this point 
Solved Threads: 0
ddwyer50 ddwyer50 is offline Offline
Newbie Poster

Can python do this? How?

 
0
  #1
May 17th, 2005
Helo All,

I need to write a python script that will automatically log into a website and retrieve a URL once it has logged in. I already know how to fetch the html of a page, but how do I make the script log into the page first?

On the page I want to login, the "Login" button does this:

<input name="Go" type="image" src="images/login.gif" onClick="return _CF_checkFMLSLOGIN(document.FMLSLOGIN)" width="37" height="26" border="0" tabindex="3">

Thanks!
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 4,009
Reputation: vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice 
Solved Threads: 929
Moderator
vegaseat's Avatar
vegaseat vegaseat is offline Offline
DaniWeb's Hypocrite

Re: Can python do this? How?

 
0
  #2
May 18th, 2005
I am just getting my feet wet with WEB programming in Python. I found these two articles very useful:

http://www.devshed.com/c/a/Python/Wr...ams-in-Python/
http://www.devshed.com/c/a/Python/Python-on-the-Web/
May 'the Google' be with you!
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 37
Reputation: EAnder is an unknown quantity at this point 
Solved Threads: 5
EAnder EAnder is offline Offline
Light Poster

Re: Can python do this? How?

 
0
  #3
Jul 23rd, 2008
You could use the urllib or urllib2 modules for this task I assume but you could also start from scratch using pure sockets. You would need to learn HTTP Protocol for this and simulate what messages a webbrowser sends to the server hosting the website for the user and password boxes.

here are some good starter websites on HTTP:
en.wikipedia.org/wiki/Hypertext_Transfer_Protocol
www.w3.org/Protocols/
This ones really good:
http://www.jmarshall.com/easy/http/
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC