使用cheerio-httpcli库我尝试对我的在线课程进行网页抓取

我对我的学霸同学非常敬佩!

(Wǒ duì wǒ de !)

请提供更多上下文或具体内容。

    Node.jsでスクレイピングするならcheerio-httpcliが超快適だったよってお話 – bokuweb.me

安装

apt-get install -y node npm coffeescript
npm install cheerio-httpcli

如果想要将目录移动到其他位置,请将 node_modules 目录与其一起移动。

使用方法

client = require('cheerio-httpcli')
url = 'http://meeting.blue/?a=kanto'
client.fetch url, {}, (err, $, res)->
  $('.meeting-list-container > .meeting-container').each ()->
  console.log $(this).text()
coffee meeting.coffee
東京都06月18日(木) 10:00〜060CMS『concrete5』導入活用セミナー 2015年6月4人分の空席アットビジネスセンター渋谷東口駅前 502号室
東京都06月18日(木) 13:20〜010Sencha Ext JS 5 無料セミナー #91人分の空席ブリッジにいがた 商談スペースB(1F店舗内を通過し、奥の階段から2Fにあがってください)
東京都06月18日(木) 13:30〜0120(3時間無料セミナー)NoSQLのApache Cassandraを知ろう! (2015/6/18)2人分の空席渋谷ヒカリエカンファレンス/貸し会議室 11階 Room D
東京都06月18日(木) 16:00〜020OnetoOne マーケティング最新動向セミナー17人分の空席加賀電子本社ビル2F会議室A
...

发送电子邮件

#!/bin/sh
set -eu

cd $HOME/cron/capture/
coffee meeting.coffee | mail -s "meeting:kanto" mymail@addr.com
bannerAds