title: how to retrieve nodejs scraped data and display in html
body: <p>I am trying to scrape a website for some content using NodeJs, it all works good but then the <strong>scraped</strong> text is desplayed in the console only however, i want to pass my <strong>scraped</strong> data to my html page (index.html), but didn't know how to do that.</p>
  <p>here is my nodejs file (scrape.js)</p>
  <pre><code>const request = require('request');
  const cheerio = require('cheerio');
  
  request('https://store.steampowered.com/search/?filter=weeklongdeals', (error, response, html) =&gt;{
  if(!error &amp;&amp; response.statusCode == 200){
      const $ = cheerio.load(html);
  
    $('.title').each((i,ele) =&gt; {
        const title = $(ele).text();
        console.log(title);
    });
  
  }
  })
  </code></pre>
  <p>and here is my html file where the data should displayed in(index.html)</p>
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;title&gt;Real Time Data&lt;/title&gt;
  &lt;meta charset=&quot;UTF-8&quot; /&gt;
  &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot; /&gt;
  &lt;link rel=&quot;stylesheet&quot; href=&quot;https://www.w3schools.com/w3css/4/w3.css&quot; /&gt;
  &lt;link rel=&quot;stylesheet&quot; href=&quot;https://fonts.googleapis.com/css?family=Raleway&quot; /&gt;
  &lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js&quot;&gt;&lt;/script&gt;
  
  &lt;body ng-app=&quot;myApp&quot; ng-controller=&quot;myCtrl&quot;&gt;
      &lt;div class=&quot;bgimg w3-display-container w3-animate-opacity w3-text-white&quot;&gt;
          &lt;div class=&quot;w3-display-topleft w3-padding-large w3-xlarge&quot;&gt;
              Real Time Data
          &lt;/div&gt;
          &lt;div class=&quot;w3-display-middle&quot;&gt;
              &lt;h1 class=&quot;w3-jumbo w3-animate-top&quot;&gt;Real Time Data&lt;/h1&gt;
              &lt;center&gt;
                  &lt;div id=&quot;getDDta&quot;&gt;
                      &lt;table&gt;
                          &lt;tr&gt;
                              &lt;th&gt;Title&lt;/th&gt;
                          &lt;/tr&gt;
  
                          &lt;tr&gt;
                              &lt;td&gt;Data...&lt;/td&gt;
                          &lt;/tr&gt;
                          &lt;/table&gt;
                  &lt;/div&gt;
              &lt;/center&gt;
          &lt;/div&gt;
          &lt;div class=&quot;w3-display-bottomleft w3-padding-large&quot;&gt;
              Powered by
               Real Time Data&lt;/a&gt;
           &lt;/div&gt;
          &lt;/div&gt;
          &lt;/body&gt;
        &lt;/html&gt;
  </code></pre>
  <p>my request is very simple, i want to display the <strong>scraped</strong> data in nodejs (scrape.js) in (index.html)</p>