Skip to content

Instantly share code, notes, and snippets.

View nicktaylor's full-sized avatar

Nick Taylor nicktaylor

View GitHub Profile
t is [Module] {
__esModule: true,
addComment: [Function: addComment],
addComments: [Function: addComments],
appendToMemberExpression: [Function: appendToMemberExpression],
assertNode: [Function: assertNode],
buildMatchMemberExpression: [Function: buildMatchMemberExpression],
clone: [Function: clone],
cloneDeep: [Function: cloneDeep],
cloneDeepWithoutLoc: [Function: cloneDeepWithoutLoc],
import "babel-polyfill"
const puppeteer = require('puppeteer');
const url = 'https://www.racingpost.com';
puppeteer
.launch()
.then(browser => browser.newPage())
.then(page => page.goto(url).then(() => page.content()))
.then(html=> console.log(html))

Keybase proof

I hereby claim:

  • I am nicktaylor on github.
  • I am nick84 (https://keybase.io/nick84) on keybase.
  • I have a public key ASCdfH54g9zpuOBXUj9ROmKD7CM6JM-TzidsErN8m68SJwo

To claim this, I am signing this object: