Skip to content

jadeallencook/yellow-pages-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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