<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          HorsemanNode.js 的網(wǎng)頁瀏覽擴展

          聯(lián)合創(chuàng)作 · 2023-09-23 16:57

          Horseman 是一個 Node.js 擴展模塊,利用 PhantomJS 實現(xiàn)直接鏈式 API 和方便理解的控制流來實現(xiàn)無需圖形化界面的網(wǎng)頁瀏覽和數(shù)據(jù)獲取。

          示例代碼:

          var Horseman = require("node-horseman");
          var horseman = new Horseman();
          
          var projects = ['nodejs',
              'jquery',
              'tomcat',
              'mysql',
              'docker',
              'j2cache',
              'runjs',
              'git'];
          
          projects.forEach( function( p ){
            var data = horseman
            .open('http://www.oschina.net/p' + p)
            .text('div.soft_collect_count');
            console.log( p + ': ' + data );
          });

          安裝方法:

           npm install node-horseman
          瀏覽 15
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          評論
          圖片
          表情
          推薦
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  大粗鸡巴久久久久 | 欧美熟女一区二区 | 日韩手机看片 | 亚洲欧美日韩久久精品第一区 | 99视频在线精品免费观看2 |