mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
docs: mention puppeteer-core (#3061)
This commit is contained in:
parent
af361c8ed6
commit
3ae85e4649
12
README.md
12
README.md
@ -39,6 +39,18 @@ npm i puppeteer
|
|||||||
|
|
||||||
Note: When you install Puppeteer, it downloads a recent version of Chromium (~170Mb Mac, ~282Mb Linux, ~280Mb Win) that is guaranteed to work with the API. To skip the download, see [Environment variables](https://github.com/GoogleChrome/puppeteer/blob/v1.7.0/docs/api.md#environment-variables).
|
Note: When you install Puppeteer, it downloads a recent version of Chromium (~170Mb Mac, ~282Mb Linux, ~280Mb Win) that is guaranteed to work with the API. To skip the download, see [Environment variables](https://github.com/GoogleChrome/puppeteer/blob/v1.7.0/docs/api.md#environment-variables).
|
||||||
|
|
||||||
|
|
||||||
|
### puppeteer-core
|
||||||
|
|
||||||
|
Since version 1.7.0 we publish the [`puppeteer-core`](https://www.npmjs.com/package/puppeteer-core) package,
|
||||||
|
a version of Puppeteer that doesn't download Chromium by default.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm i puppeteer-core
|
||||||
|
```
|
||||||
|
|
||||||
|
`puppeteer-core` is intended to be a lightweight version of puppeteer for launching an existing browser installation or for connecting to a remote one.
|
||||||
|
|
||||||
### Usage
|
### Usage
|
||||||
|
|
||||||
Note: Puppeteer requires at least Node v6.4.0, but the examples below use async/await which is only supported in Node v7.6.0 or greater.
|
Note: Puppeteer requires at least Node v6.4.0, but the examples below use async/await which is only supported in Node v7.6.0 or greater.
|
||||||
|
@ -313,6 +313,8 @@ If puppeteer doesn't find them in the environment, a lowercased variant of these
|
|||||||
- `PUPPETEER_DOWNLOAD_HOST` - overwrite host part of URL that is used to download Chromium
|
- `PUPPETEER_DOWNLOAD_HOST` - overwrite host part of URL that is used to download Chromium
|
||||||
- `PUPPETEER_CHROMIUM_REVISION` - specify a certain version of chrome you'd like puppeteer to use during the installation step.
|
- `PUPPETEER_CHROMIUM_REVISION` - specify a certain version of chrome you'd like puppeteer to use during the installation step.
|
||||||
|
|
||||||
|
> **NOTE** PUPPETEER_* env variables are not accounted for in the [`puppeteer-core`](https://www.npmjs.com/package/puppeteer-core) package.
|
||||||
|
|
||||||
### Error handling
|
### Error handling
|
||||||
|
|
||||||
Puppeteer methods might throw errors if they are unable to fufill a request. For example, [page.waitForSelector(selector[, options])](#pagewaitforselectorselector-options)
|
Puppeteer methods might throw errors if they are unable to fufill a request. For example, [page.waitForSelector(selector[, options])](#pagewaitforselectorselector-options)
|
||||||
|
Loading…
Reference in New Issue
Block a user