feat: changed user agent to latest chrome (#121)

* feat: changed user agent to latest chrome

* removed dead link
pull/122/head
Adam Pash 7 years ago committed by GitHub
parent 7709d69379
commit 8662474d8a

@ -3,10 +3,6 @@ import assert from 'assert';
import cheerio from 'cheerio';
let urls = [
{
url: 'https://bordeltabernacle.github.io/2016/01/04/notes-on-elixir-pattern-matching-maps.html',
title: 'Notes on Elixir: Pattern-Matching Maps',
},
{
url: 'http://www.cnn.com/2016/11/05/middleeast/iraq-mosul-isis-offensive/',
title: 'Iraqi troops storm town south of Mosul',

@ -2,7 +2,7 @@ import cheerio from 'cheerio';
// Browser does not like us setting user agent
export const REQUEST_HEADERS = cheerio.browser ? {} : {
'User-Agent': 'Mercury - https://mercury.postlight.com/web-parser/',
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36',
};
// The number of milliseconds to attempt to fetch a resource before timing out.

Loading…
Cancel
Save