Code Monkey home page Code Monkey logo

nodejs-spyder's Introduction

写在前面

最近在上数据挖掘这门课,老师说课余时间可以玩玩爬虫,爬一爬数据做做个简单的分析啥的,而且老师推荐的python,可惜不会,现在再去新学一门语言太耗费经历了,而且贪多嚼不烂。然后就想着用nodejs试试。

准备环境

当然是node环境了,最好是node6.5以上吧,node这一年更新的有点快...好像其他的没什么需要弄的,最不济有记事本加dos也行啊...

引入包

cheerio

用来做页面的解析

npm install cheerio --save

superagent

一款轻量级的ajax api,用起来非常方便,可以发送get、post、delete等等请求

npm install superagent

eventproxy

可以做小型的并发控制

npmm install eventproxy --save

运行

node app.js

然后打开浏览器,地址栏输入127.0.0.1:3000(如果看得不顺眼可以下一个jsonview)

nodejs-spyder's People

Contributors

97wgl avatar

Watchers

James Cloos 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.