Skip to content

Commit

Permalink
Changed the way non-2xx responses are handled.
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelBone committed Aug 6, 2018
1 parent ed8e1b4 commit f2098cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.js
Expand Up @@ -91,7 +91,7 @@ async function main() {
"Upgrade-Insecure-Requests": "1",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134"
};
let body = await request({ url: DevelopmentApplicationsUrl, proxy: process.env.MORPH_PROXY, simple: false, headers: headers });
let body = await request({ url: DevelopmentApplicationsUrl, proxy: process.env.MORPH_PROXY, simple: true, headers: headers });
let $ = cheerio.load(body);
await sleep(20000 + getRandom(0, 10) * 1000);

Expand Down

0 comments on commit f2098cf

Please sign in to comment.