Last active
December 7, 2015 21:45
-
-
Save dhollenbeck/299f7de6b98bc12e94d7 to your computer and use it in GitHub Desktop.
zipdatamaps.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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