Skip to content

Instantly share code, notes, and snippets.

View hechen0's full-sized avatar
🎯
Focusing

何晨 hechen0

🎯
Focusing
View GitHub Profile
@hechen0
hechen0 / webcrawler.js
Created December 1, 2013 09:05
first to create web crawler with node js
var http = require('http'),
cheerio = require('cheerio');
startUrl = 'http://www.renren.com';
var urls = [startUrl];
var tags = ["div","h1","h2","h3","h4","h5","img","a"]
// Utility function that downloads a URL and invokes callback