title: How to access the password protected Router Page from Python?
body: <p>I want to fetch the page <code>192.168.1.1 /basic/home_dhcplist.htm</code>
   from the router but it asks for username and password at the start.</p>
  
  <p>I am fetching the page in Python through urllib2</p>
  
  <pre><code>import urllib2
  response = urllib2.urlopen('http://192.168.1.1/basic/home_dhcplist.htm')
  html = response.read()
  str="Prasads"
  value= html.find(str)
  print value
  if value!=-1 :
      print "found"
  else:
  print "not found"
  
  response.close()
  </code></pre>