urllib and parsing

L

luca72

Hello i have a simple question:
up to now if i have to parse a page i do as follow:
import urllib
site = urllib.urlopen('http://www.blabla.ooo')
list_a = site.readline()
site.close()
__and then i make my work__

Now i have the site that is open by an html file like this:
<table>
<b>insert the password</b>
<form name="form_a" method="POST" action="http://lalal.hhdik/
lolo.php">
<input type="passwd" name="password"
value="password"></input>;
<input type="submit" name="Entra"
value="entra"></input>;
</form>
</table>

</div>
<script type="text/javascript">
document.form_a.submit();
</script>

this is in a file called example.html

how can i open it with urllib, please note i don't have to parse this
file, but i have to parse the site where he point.
 

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,981
Messages
2,570,187
Members
46,731
Latest member
MarcyGipso

Latest Threads

Top