web access by python
<p>i'am looking up for way to enter web site "Login"</p>

<p>i tried this </p>

<pre><code>login_form_seq = [
      ('user', 'Lick'),
      ('pass', 'Shot'),
      ('submit', 'login')]
A=urllib.urlencode(login_form_seq)
opener = urllib2.build_opener()
try:
 site = opener.open('http://www.SMS-Example.com/user.php', A).read()
 site2 = urllib.urlopen('http://www.SMS-Example.com/sms.php').read()
 print site2
except(urllib2.URLError), msg:
 print msg
 site = ""
 pass
</code></pre>

<p>but actually what I should put on <code>submit</code> and <code>login</code>? i put it randomly !!</p>

<p>thanks...</p>
