Skip to content

Instantly share code, notes, and snippets.

@robertkowalski
Created July 18, 2012 14:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robertkowalski/3136566 to your computer and use it in GitHub Desktop.
Save robertkowalski/3136566 to your computer and use it in GitHub Desktop.
node.io scraper for my blog
var nodeio = require('node.io'),
options = {timeout: 10};
exports.job = new nodeio.Job(options, {
input: false,
run: function (keyword) {
this.getHtml('http://robert-kowalski.de', function (err, $) {
var titles = [];
$('h1.entry-title')
.each(function(element) {
titles.push(element.children[0].children[0].data);
});
this.emit(titles) ;
});
}
});
@robertkowalski
Copy link
Author

(16:35:45) [robert@tequila-apple] ~/Projekt/BlogSource/node.io $ node.io scraper.js 
SEO: noindex für Octopress
Geolocation für Enyo
Cross-Platform-Development mit Titanium
Tutorial: Die erste App mit EnyoJS
Kurzvorstellung: Screen Scraping mit node & jsdom
Cross-Platform Test Driven Development (TDD) mit Jasmine, jQuery Mobile, Phonegap und node
Private und Public in JavaScript
OK: Job complete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment