/Yellow-Page-Email-Scraper

Scrap Yellow Pages for emails in specified locations and return them in a list.

Primary LanguageJavaScript

Yellow Page Email Scraper

About

Scrap Yellow Pages for emails and return them in a list - Screen shot

CasperJS

First use npm to install casperjs -

$ npm install casperjs
OR
$ npm install -g casperjs

Customize

Update the host{} in scraper.js -

var host = {
    // main connect
    url: 'http://yellowpages.com',
    // areas to search
    area: [
        '/michigan',
        '/california',
        '/washington',
        '/florida',
    ],
    // business keyword
    keyword: '/restaurant',
    // creates complete link
    search: function () {
        return host.url + host.area[build.currentLocation] + host.keyword;
    }
};

Running

Redirect your terminal to the scraper directory then -

$ casperjs scraper.js