Skip to content

Instantly share code, notes, and snippets.

@dhollenbeck
Last active December 7, 2015 21:45
Show Gist options
  • Save dhollenbeck/299f7de6b98bc12e94d7 to your computer and use it in GitHub Desktop.
Save dhollenbeck/299f7de6b98bc12e94d7 to your computer and use it in GitHub Desktop.
zipdatamaps.com
var request = require('request');
var zip = '78733';
var url = 'http://www.zipdatamaps.com/' + zip;
request(url, function (error, response, body) {
if (error) console.log(error);
//parse timezone
var min = body.indexOf('blah');
var max = body.indexOf('blah blah');
var tz = body.substring(min, max);
console.log('timezone', tz)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment