Guide To Chrome

Please find below some of the most popular articles I've written on Guide To Chrome.

Table of Contents

Building a Website Scraper using Chrome and Node.js

Sample Greasemonkey Script in Chrome to process local files

Scraping Adsense Ads with PhantomJS



Building a Website Scraper using Chrome and Node.js

A couple of months back, I did a proof of concept to build a scraper entirely in JavaScript, using webkit (Chrome) as a parser and front-end. Having investigated seemingly expensive SaaS scraping software, I wanted to tease out what the challenges are, and open the door to some interesting projects. I have some background in [...] Read More...

Sample Greasemonkey Script in Chrome to process local files

The following script will fire an alert box for local files: // ==UserScript== // @name Matcher // @descriptions Match Local Files // @version 1 // @match file://* // ==/UserScript== alert(1); Save as “match.user.js”. Drop into a Chrome tab and you will be prompted to install. These are done per user profile. Each time you re-install [...] Read More...

Scraping Adsense Ads with PhantomJS

PhantomJS is a headless WebKit, which lets you run Javascript in a browser from the command line. It adds additional API calls which facilitate automated testing, screenshots, and scraping. I thought it would be interesting to write a script to retrieve Adsense destination URLs and text with PhantomJS. Extracting advertisement blocks requires fairly simple CSS [...] Read More...