Skip to content

Instantly share code, notes, and snippets.

View dodyg's full-sized avatar

Dody Gunawinata dodyg

View GitHub Profile
@bermanboris
bermanboris / phantomjs-example.ts
Last active July 2, 2020 03:50
PhantomJS usage in TypeScript ( Node.js )
// Usage:
//
// npm install phantom @types/phantom --save
// tsc --target "es6" ./phantomjs-example.ts
// node phantomjs-example.js
//
import * as phantom from "phantom";
async function getPageContent(url: string) {