title: Python mechanize cannot find link
body: <p>I'm using this code to print links in a web page</p>
  
  <pre><code>wb = mechanize.Browser()
  wb.open("https://example.com")
  
  print wb.response().read()
  for link in wb.links():
       print "aa-&gt;"
  </code></pre>
  
  <p>The response is this:</p>
  
  <pre><code>...
      &lt;a href=/Router/moneyReload.web;JSESSIONID=2C832E9B3DB0EE7162D7434FC352B85E.coreAR02&gt;Recarga De Saldo&lt;/a&gt;&lt;br&gt;&lt;a href=/Router/roamingMoneyReload.web;JSESSIONID=2C832E9B3DB0EE7162D7434FC352B85E.coreAR02&gt;Recarga en Roaming&lt;/a&gt;&lt;br&gt;&lt;a href=/Router/lastOperatorSale.web;JSESSIONID=2C832E9B3DB0EE7162D7434FC352B85E.coreAR02&gt;Ultima Recarga&lt;/a&gt;&lt;br&gt;&lt;a href=/Router/LastSubscriberTopUpPerform.web;JSESSIONID=2C832E9B3DB0EE7162D7434FC352B85E.coreAR02&gt;Consulta de Recarga&lt;/a&gt;&lt;br&gt;&lt;a href=/Router/stockReportCreditLimit.web;JSESSIONID=2C832E9B3DB0EE7162D7434FC352B85E.coreAR02&gt;Informe de Ventas&lt;/a&gt;&lt;br&gt;&lt;a href=/Router/stockReport.web;JSESSIONID=2C832E9B3DB0EE7162D7434FC352B85E.coreAR02&gt;Informe de Saldo Disponible&lt;/a&gt;&lt;br&gt;&lt;a href=/Router/dealerCloseBatch.web;JSESSIONID=2C832E9B3DB0EE7162D7434FC352B85E.coreAR02&gt;Cierre de Turno&lt;/a&gt;&lt;br&gt;&lt;a href=/Router/ChangePointOfSalePin.web;JSESSIONID=2C832E9B3DB0EE7162D7434FC352B85E.coreAR02&gt;Cambiar PIN&lt;/a&gt;&lt;br&gt;&lt;a href=/Router/activePortfolioQuery.web;JSESSIONID=2C832E9B3DB0EE7162D7434FC352B85E.coreAR02&gt;Consulta Portfolio&lt;/a&gt;&lt;br&gt;&lt;/body&gt;&lt;/html&gt;
  </code></pre>
  
  <p>As you can see, there are some links in there, but I'm not getting any links in the 'for'</p>
  
  <p>Maybe because they have'nt any quotes in href attribute. But in this case how can I read them? </p>
  
  <p>thanks</p>