title: How do I emulate a button press in web scraping?
body: <p>Hello I am using <a href="https://github.com/gocolly/colly" rel="nofollow noreferrer"><code>colly</code></a> to scrape my university's classes. The web page is simple enough</p>
  <pre><code>&lt;form id=&quot;rngID&quot; method=&quot;post&quot; action=&quot;../../../SOME_REALLY_LONG_PATH&quot;&gt;
  
  &lt;input type=&quot;hidden&quot; name=&quot;rngID_hf_0&quot; id=&quot;rngID_hf_0&quot;&gt;
              &lt;label for=&quot;user&quot;&gt;User:&lt;/label&gt;
              &lt;input type=&quot;text&quot; maxlength=&quot;20&quot; value=&quot;&quot; name=&quot;user&quot; class=&quot;required valid&quot;&gt;
              &lt;label for=&quot;password&quot;&gt;Password:&lt;/label&gt;
              &lt;input type=&quot;password&quot; maxlength=&quot;20&quot; value=&quot;&quot; name=&quot;password&quot; class=&quot;required valid&quot;&gt;
              &lt;input type=&quot;hidden&quot; id=&quot;js&quot; value=&quot;1&quot; name=&quot;js&quot; class=&quot;valid&quot;&gt;
  &lt;script&gt;
  /*&lt;![CDATA[*/
                  document.getElementById(&quot;js&quot;).value = &quot;1&quot;
  /*]]&gt;*/
  &lt;/script&gt;
  &lt;input type=&quot;submit&quot; class=&quot;btn-blue valid&quot; name=&quot;login&quot; id=&quot;rngID+2&quot; value=&quot;Ingresar&quot;&gt;
  &lt;/form&gt;
  </code></pre>
  <p>I find myself needing to interact with the website's contents. I understand I have the underlying  objects associated to the HTML file recieved, but I am struggling to find how to trigger the submit action. Moreover I am unsure how to set the html input values with colly (username and password).</p>
  <p>Can this not be done in colly? It seems to have good cookie management which fits in what I'm looking fo</p>