title: How to crawling using Node.js
body: <p>I can't believe that I'm asking an obvious question, but I still get the wrong in console log.</p>
  <p>Console shows crawl like &quot;[]&quot; in the site, but I've checked at least 10 times for typos. Anyways, here's the javascript code.</p>
  <p>I want to crawl in the site.</p>
  <p>This is the <strong>kangnam.js</strong> file :</p>
  <pre><code>const axios = require('axios');
  const cheerio = require('cheerio');
  const log = console.log;
  
  const getHTML = async () =&gt; {
      try {
          return await axios.get('https://web.kangnam.ac.kr', {
              headers: {
                  Accept: 'text/html'
              }
          });
      } catch (error) {
          console.log(error);
      }
  };
  
  getHTML()
      .then(html =&gt; {
      let ulList = [];
      const $ = cheerio.load(html.data);
      const $allNotices = $(&quot;ul.tab_listl div.list_txt&quot;);
      
      $allNotices.each(function(idx, element) {
          ulList[idx] = {
              title : $(this).find(&quot;list_txt title&quot;).text(),
              url : $(this).find(&quot;list_txt a&quot;).attr('href')
          };
      });
      
      const data = ulList.filter(n =&gt; n.title);
      return data;
  }). then(res =&gt; log(res));
  </code></pre>
  <p>I've checked and revised at least 10 times
  Yet, Js still throws this result :</p>
  <pre><code>root@goorm:/workspace/web_platform_test/myapp/kangnamCrawling(master)# node kangnam.js
  []
  </code></pre>