Skip to content

Commit

Permalink
betradar without async/await
Browse files Browse the repository at this point in the history
  • Loading branch information
ffflabs committed Nov 29, 2017
1 parent 4d54f5f commit 9e75798
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions betradar_async.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
const puppeteer = require('puppeteer');
const puppeteer = require('puppeteer'),
betradar = 'http://stats.betradar.com/s4/?clientid=1739&language=en#2_1,3_1,22_1,5_40942,9_headtohead,7_33,178_31';

(async() => {
const browser = await puppeteer.launch();
const page = await browser.newPage();


await page.goto('http://stats.betradar.com/s4/?clientid=1739&language=en#2_1,3_1,22_1,5_40942,9_headtohead,7_33,178_31');
await page.goto(betradar);
await page.waitFor('.percentagebar');
const contents = await page.content();

Expand Down

0 comments on commit 9e75798

Please sign in to comment.