 <p>I disabled Javascript and visited <a href="https://www.searchiqs.com/nybro/" rel="nofollow noreferrer">https://www.searchiqs.com/nybro/</a> and the form looks like this:</p> <p><a href="https://i.stack.imgur.com/U8GZf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/U8GZf.png" alt="enter image description here"></a> </p> <p>As you can see the <em>Log In</em> and <em>Log In as Guest</em> buttons are disabled. This will make it impossible for Mechanize to work because it can not process Javascript and you won't be able to submit the form. </p> <p>For this kind of problems you can use Selenium, that will simulate a full Browser with the disadvantage of being slower than Mechanize.</p> <p>This code should log you in using Selenium:</p> <pre><code>from selenium import webdriver from selenium.webdriver.common.keys import Keys usr = "" pwd = "" driver = webdriver.Firefox() driver.get("https://www.searchiqs.com/nybro/") assert "IQS" in driver.title elem = driver.find_element_by_id("txtUserID") elem.send_keys(usr) elem = driver.find_element_by_id("txtPassword") elem.send_keys(pwd) elem.send_keys(Keys.RETURN) </code></pre>