diff --git a/server.js b/server.js index a11ca36..35af51d 100644 --- a/server.js +++ b/server.js @@ -8,7 +8,10 @@ app.get('/scrape', function(req, res){ // Let's scrape Anchorman 2 url = 'http://www.imdb.com/title/tt1229340/'; - request(url, function(error, response, html){ + request({ + url : url, + rejectUnauthorized : false + }, function(error, response, html){ if(!error){ var $ = cheerio.load(html);