title: Node.js + Cheerio Scraping : How to post in a contact form?
body: <p>I  am pretty new to web scraping techniques though I already have solid knowledge in terms of PHP / HTML / CSS.</p>
  <p>After reading a few tutorials and a lot of tries, I finally managed to scrape my first results as a test.</p>
  <p>I use Cheerio + Node.js, and here was the code of my test:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>var request = require('request');
  var cheerio = require('cheerio');
  var fs = require('fs');
  
  request('http://www.passion-de-vin.com/contact/', function (error, response, html) {
      if (!error &amp;&amp; response.statusCode == 200) {
          var $ = cheerio.load(html);
          var parsedResults = [];
          $('.form-headline').filter(function(i, element) {
              var a = $(this).children();
              var titre = a.first().text();
              release2 = titre.replace(/(\r?\n)/g, '');
              release = release2.replace(/\s\s/g, '');
              titre = titre;            
  
              // Our parsed meta data object
              var metadata = {
                  titre,
              };
  
              // Push meta-data into parsedResults array
              parsedResults.push(metadata);
  
              fs.writeFile('output.json', JSON.stringify(parsedResults, null, 4), function(err){
  
              console.log('File successfully written! - Check your project directory for the output.json file');})
          });
          // Log our finished parse results in the terminal
          console.log(parsedResults);
      }
  });</code></pre>
  </div>
  </div>
  </p>
  <p>I have the result log in my JSON file.</p>
  <p>Now I would like to know and understand how I can transmit information to that form, post a result and see or get the result of the post.</p>
  <p>So far, all I have read has been unclear to me</p>