Code Monkey home page Code Monkey logo

crawler's Introduction

Node爬虫+邮箱发送

这个用来爬牛客网上的招聘信息,然后发给自己的邮箱

Features

  • 利用superagent来抓取网页
  • 利用cheerio来分析网页
  • 利用nodemailer来发送邮件(内置QQ邮箱配置)
  • 尝试利用eventproxy来管理异步

Configs

  1. 新建auth.json,然后输入邮箱密码,已经加入.gitignore,这样不会再git里面记录账号
{
  "user": "",
  "pass":""
}
  1. 新建send_list.json,输入要发件方和接收方,接收方如果不止一个可以用逗号隔开
{
"from":"@qq.com",
"to":"@126.com"
}
  1. 在命令函输入 node index.js可以完成爬取数据到发送邮件的过程。

  2. 如果输入node index.js fetch可以只爬取数据

  3. 如果输入node index.js mail可以把爬取的数据进行邮件发送(要成功执行第四步)

Reference

爬虫

crawler's People

Contributors

ysyszrj avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.