Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yujiosaka committed Dec 5, 2017
1 parent 6f25ba4 commit f7aa9dd
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 10 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,24 @@ When both defined, hccrawler.queue's options are always preferred.
#### hccrawler.queueSize

* returns: <[number]> The size of queues. This property is read only.

## Debugging tips

### Puppeteer.launch's options

[hccrawler.launch](#chcrawlerlaunchoptions)'s options are passed straight to [Puppeteer.launch API](https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#puppeteerlaunchoptions).
It may be useful to set the `headless` and `slowMo` options so that you can see what is going on.

```js
hccrawler.launch({ headless: false, slowMo: 10 });
```

### Enable debug logging

All requests and browser's logs are logged via the [debug]'(https://github.com/visionmedia/debug)' module under the `hccrawler` namespace.

```
env DEBUG="hccrawler:*" node script.js
env DEBUG="hccrawler:request" node script.js
env DEBUG="hccrawler:browser" node script.js
```
10 changes: 0 additions & 10 deletions examples/README.md

This file was deleted.

0 comments on commit f7aa9dd

Please sign in to comment.