{"size": 604, "ext": "js", "max_stars_repo_path": "13.crawl/2.cheerio.js", "max_stars_repo_name": "Jenear/aaa", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "13.crawl/2.cheerio.js", "max_issues_repo_name": "Jenear/aaa", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "13.crawl/2.cheerio.js", "max_forks_repo_name": "Jenear/aaa", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.16, "max_line_length": 67, "alphanum_fraction": 0.6374172185}
/**
 * cheerio是一个在node里面使用的，类似于jquery的工具
 */
let cheerio = require('cheerio');
let html = `<li class="conLi conLiji">
  <em style="width:100px;text-align:left;padding-left:5px;">芹菜</em>
  <em style="width:80px;">0.60</em>
  <em style="width:80px;">0.80</em>
  <em style="width:80px;">1.00</em>
  <em style="width:80px;">普通</em>
  <em style="width:80px;">斤</em>
  <em style="width:106px;">2017-08-19</em>
</li>`;
//把html字符串转成一个jquery对象
let $ = cheerio.load(html);
$('li.conLiji em').each(function(index,item){
   //把原生的对象转成jquery对象
   let $this = $(this);
   console.log($this.text());//innerText

});



