Skip to content

Instantly share code, notes, and snippets.

const rp = require('request-promise');
const otcsv = require('objects-to-csv');
const cheerio = require('cheerio');
const baseURL = 'https://www.yellowpages.com';
const searchURL = '/search?search_terms=printing&geo_location_terms=New+York';
const getCompanies = async () => {
const html = await rp(baseURL + searchURL);
const businessMap = cheerio('a.business-name', html).map(async (i, e) => {

Keybase proof

I hereby claim:

  • I am luisramalho on github.
  • I am luisramalho (https://keybase.io/luisramalho) on keybase.
  • I have a public key whose fingerprint is E2B5 1499 D0B2 86F4 4643 8536 2F4B B6C3 FDE5 61EF

To claim this, I am signing this object:

@luisramalho
luisramalho / devise.pt-PT.yml
Created July 15, 2012 20:56 — forked from pama/devise.pt.yml
European Portuguese translation for devise
# European Portuguese translations for devise
"pt-PT":
errors:
messages:
expired: "expirou, por favor solicite uma nova"
not_found: "não foi encontrado"
already_confirmed: "já foi confirmado, por favor tente efetuar a autenticação"
not_locked: "não foi bloqueado"
not_saved: