Skip to content

Commit

Permalink
Merge pull request #29 from AdrianLoer/master
Browse files Browse the repository at this point in the history
fix CRI example
  • Loading branch information
N0taN3rd authored Apr 4, 2019
2 parents a576577 + 50e7325 commit be38971
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ parser.start()

```js
const CRI = require('chrome-remote-interface')
const { RemoteChromeWARCGenerator, RemoteChromeCapturer } = require('node-warc')
const { RemoteChromeWARCWriter, RemoteChromeCapturer } = require('node-warc')

;(async () => {
const client = await CRI()
Expand All @@ -114,7 +114,7 @@ const { RemoteChromeWARCGenerator, RemoteChromeCapturer } = require('node-warc')
await client.Page.navigate({ url: 'http://example.com' });
// actual code should wait for a better stopping condition, eg. network idle
await client.Page.loadEventFired()
const warcGen = new RemoteChromeWARCGenerator()
const warcGen = new RemoteChromeWARCWriter()
await warcGen.generateWARC(cap, client.Network, {
warcOpts: {
warcPath: 'myWARC.warc'
Expand Down Expand Up @@ -194,4 +194,4 @@ The generateWARC method used in the preceding examples is helper function for ma
the WARC generation process simple. See its implementation for a full example
of WARC generation using node-warc

Or see one of the crawler implementations provided by [Squidwarc](https://github.com/N0taN3rd/Squidwarc/tree/master/lib/crawler).
Or see one of the crawler implementations provided by [Squidwarc](https://github.com/N0taN3rd/Squidwarc/tree/master/lib/crawler).

0 comments on commit be38971

Please sign in to comment.