title: How to get element one by one using node.js Cheerio
body: <p>I'm making web scraper using Cheerio, Request on Node.js. I used some scrapers, But I don't know jQuery familiar scraper, Cheerio. anyway, Let's see the problem.</p>
  <p><strong>html</strong></p>
  <pre><code>&lt;li&gt;&lt;a title=&quot;FR&quot; class=&quot;A&quot;&gt;176.31.239.33:8133&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a title=&quot;FR&quot; class=&quot;B&quot;&gt;87.98.218.86:3128&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a title=&quot;CN&quot; class=&quot;A&quot;&gt;183.62.60.100:80&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a title=&quot;CN&quot; class=&quot;A&quot;&gt;183.131.152.227:80&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a title=&quot;CN&quot; class=&quot;A&quot;&gt;183.238.133.43:80&lt;/a&gt;&lt;/li&gt;
  </code></pre>
  <p>I want to pick up elements that have class=&quot;A&quot;, and then its text <code>(183.62.60.100:80)</code>. and then will make array.</p>
  <pre><code>[ 
  { 'title' : 'FR', 'IP' : '176.31.239.33:8133' }, 
  { 'title' : 'CN', 'IP' : '183.62.60.100:80' },
  ...
  ]
  </code></pre>
  <p>But I got stucked. I tried...</p>
  <pre><code>var $ = cheerio.load(html);
  var arr = $('a[class=A]').text();
  console.log(arr) 
  
  // result is 
  // 176.31.239.33:8133183.62.60.100:80183.131.152.227.80
  
  // if I print console.log(arr[0]), the result is just 1
  </code></pre>
  <p>The reuslt is not an array, so I can't pick it up one by one. How could I do it?</p>