title: Javascript scraper logging in
body: <p>I seem to be doing something wrong.</p>
  
  <p>I have a student website that I want to scrape, but first I need to log in. Currently I have a python scraper that does it. The website logs in with a post request to a url containing a sid and PIN.</p>
  
  <pre><code>var login_url = 'https://example.com';
  
  var formData = {
      sid: 'username',
      PIN: 'password'
  }
  </code></pre>
  
  <p>How would I go about creating the same scraper but with javascript? I have seen the request library, which seems like what I want to use but cannot get it to work.</p>