title: How can I simulate onclick event in python?
body: <p>I am working on a small project where I have to submit a form to a website.
  The website is, however, using  <code>onclick</code>  event to submit the form (using javascript). </p>
  
  <ol>
  <li><p>How can the <code>onclick</code> event be simulated in python?</p></li>
  <li><p>Which modules can be used? I have heard about <code>selenium</code> and <code>mechanize</code> modules. But, which module can be used or in case of both, which one is better?</p></li>
  </ol>
  
  <p>I am new to web scraping and automation.So,it would be very helpful.</p>
  
  <p>Thanks in advance.</p>