| | |
Can python do this? How?
Thread Solved |
•
•
Join Date: May 2005
Posts: 1
Reputation:
Solved Threads: 0
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!
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!
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/
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!
•
•
Join Date: Feb 2008
Posts: 37
Reputation:
Solved Threads: 5
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/
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/
![]() |
Similar Threads
- How to do Input in Python? (Python)
- What are the .apy files in Python (Python)
- Python! Thoughts? (Python)
- what is python (Python)
- design customized mysql frontend with perl or python (MySQL)
Other Threads in the Python Forum
- Previous Thread: newbie: extracting parts of a reg ex match
- Next Thread: Defult (startup) Variables?
| Thread Tools | Search this Thread |
abrupt accessdenied anti apache application approximation argv array beginner book builtin calculator change converter countpasswordentry curved dan08 dictionaries dictionary dynamic edit enter examples file float format function gui heads homework import inches input java keyboard lapse launcher library line lines linux list lists loop microphone mouse movingimageswithpygame mysqlquery newb number numbers numeric output parameters parsing path phonebook plugin port prime programming projects py2exe pygame pyopengl python random recursion redirect remote reverse scrolledtext session simple software sprite statictext string strings syntax table terminal text textarea thread threading time tlapse trick tuple tutorial twoup ubuntu unicode unit urllib urllib2 variable wordgame wxpython






