mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
1 line
21 KiB
JavaScript
1 line
21 KiB
JavaScript
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[99712],{3905:(e,t,r)=>{r.d(t,{Zo:()=>u,kt:()=>c});var a=r(67294);function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){n(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t){if(null==e)return{};var r,a,n=function(e,t){if(null==e)return{};var r,a,n={},p=Object.keys(e);for(a=0;a<p.length;a++)r=p[a],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(e);for(a=0;a<p.length;a++)r=p[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var l=a.createContext({}),s=function(e){var t=a.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):o(o({},t),e)),r},u=function(e){var t=s(e.components);return a.createElement(l.Provider,{value:t},e.children)},h={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},m=a.forwardRef((function(e,t){var r=e.components,n=e.mdxType,p=e.originalType,l=e.parentName,u=i(e,["components","mdxType","originalType","parentName"]),m=s(r),c=n,d=m["".concat(l,".").concat(c)]||m[c]||h[c]||p;return r?a.createElement(d,o(o({ref:t},u),{},{components:r})):a.createElement(d,o({ref:t},u))}));function c(e,t){var r=arguments,n=t&&t.mdxType;if("string"==typeof e||n){var p=r.length,o=new Array(p);o[0]=m;var i={};for(var l in t)hasOwnProperty.call(t,l)&&(i[l]=t[l]);i.originalType=e,i.mdxType="string"==typeof e?e:n,o[1]=i;for(var s=2;s<p;s++)o[s]=r[s];return a.createElement.apply(null,o)}return a.createElement.apply(null,r)}m.displayName="MDXCreateElement"},26649:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>s,contentTitle:()=>i,default:()=>m,frontMatter:()=>o,metadata:()=>l,toc:()=>u});r(67294);var a=r(3905);function n(){return n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},n.apply(this,arguments)}function p(e,t){if(null==e)return{};var r,a,n=function(e,t){if(null==e)return{};var r,a,n={},p=Object.keys(e);for(a=0;a<p.length;a++)r=p[a],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(e);for(a=0;a<p.length;a++)r=p[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}const o={sidebar_position:1},i="Puppeteer",l={unversionedId:"index",id:"version-19.0.0/index",title:"Puppeteer",description:"Build status npm puppeteer package",source:"@site/versioned_docs/version-19.0.0/index.md",sourceDirName:".",slug:"/",permalink:"/",draft:!1,tags:[],version:"19.0.0",sidebarPosition:1,frontMatter:{sidebar_position:1},sidebar:"sidebar",next:{title:"FAQ",permalink:"/faq"}},s={},u=[{value:"API | FAQ | Contributing | Troubleshooting",id:"api--faq--contributing--troubleshooting",level:4},{value:"What can I do?",id:"what-can-i-do",level:4},{value:"Getting Started",id:"getting-started",level:2},{value:"Installation",id:"installation",level:3},{value:"Environment Variables",id:"environment-variables",level:4},{value:"<code>puppeteer-core</code>",id:"puppeteer-core",level:4},{value:"Usage",id:"usage",level:3},{value:"Example",id:"example",level:4},{value:"Default runtime settings",id:"default-runtime-settings",level:3},{value:"Using Docker",id:"using-docker",level:4},{value:"Using Chrome Extensions",id:"using-chrome-extensions",level:4},{value:"Resources",id:"resources",level:2},{value:"Contributing",id:"contributing",level:2},{value:"FAQ",id:"faq",level:2}],h={toc:u};function m(e){var{components:t}=e,r=p(e,["components"]);return(0,a.kt)("wrapper",n({},h,r,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",n({},{id:"puppeteer"}),"Puppeteer"),(0,a.kt)("p",null,(0,a.kt)("a",n({parentName:"p"},{href:"https://github.com/puppeteer/puppeteer/actions?query=workflow%3ACI"}),(0,a.kt)("img",n({parentName:"a"},{src:"https://github.com/puppeteer/puppeteer/workflows/CI/badge.svg",alt:"Build status"})))," ",(0,a.kt)("a",n({parentName:"p"},{href:"https://npmjs.org/package/puppeteer"}),(0,a.kt)("img",n({parentName:"a"},{src:"https://img.shields.io/npm/v/puppeteer.svg",alt:"npm puppeteer package"})))),(0,a.kt)("img",{src:"https://user-images.githubusercontent.com/10379601/29446482-04f7036a-841f-11e7-9872-91d1fc2ea683.png",height:"200",align:"right"}),(0,a.kt)("h4",n({},{id:"api--faq--contributing--troubleshooting"}),(0,a.kt)("a",n({parentName:"h4"},{href:"https://pptr.dev/api"}),"API")," | ",(0,a.kt)("a",n({parentName:"h4"},{href:"https://pptr.dev/faq"}),"FAQ")," | ",(0,a.kt)("a",n({parentName:"h4"},{href:"https://pptr.dev/contributing"}),"Contributing")," | ",(0,a.kt)("a",n({parentName:"h4"},{href:"https://pptr.dev/troubleshooting"}),"Troubleshooting")),(0,a.kt)("blockquote",null,(0,a.kt)("p",{parentName:"blockquote"},"Puppeteer is a Node.js library which provides a high-level API to control Chrome/Chromium over the ",(0,a.kt)("a",n({parentName:"p"},{href:"https://chromedevtools.github.io/devtools-protocol/"}),"DevTools Protocol"),". Puppeteer runs in ",(0,a.kt)("a",n({parentName:"p"},{href:"https://developers.google.com/web/updates/2017/04/headless-chrome"}),"headless")," mode by default, but can be configured to run in full (non-headless) Chrome/Chromium.")),(0,a.kt)("h4",n({},{id:"what-can-i-do"}),"What can I do?"),(0,a.kt)("p",null,"Most things that you can do manually in the browser can be done using Puppeteer! Here are a few examples to get you started:"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"Generate screenshots and PDFs of pages."),(0,a.kt)("li",{parentName:"ul"},'Crawl a SPA (Single-Page Application) and generate pre-rendered content (i.e. "SSR" (Server-Side Rendering)).'),(0,a.kt)("li",{parentName:"ul"},"Automate form submission, UI testing, keyboard input, etc."),(0,a.kt)("li",{parentName:"ul"},"Create an automated testing environment using the latest JavaScript and browser features."),(0,a.kt)("li",{parentName:"ul"},"Capture a ",(0,a.kt)("a",n({parentName:"li"},{href:"https://developers.google.com/web/tools/chrome-devtools/evaluate-performance/reference"}),"timeline trace")," of your site to help diagnose performance issues."),(0,a.kt)("li",{parentName:"ul"},"Test Chrome Extensions.")),(0,a.kt)("h2",n({},{id:"getting-started"}),"Getting Started"),(0,a.kt)("h3",n({},{id:"installation"}),"Installation"),(0,a.kt)("p",null,"To use Puppeteer in your project, run:"),(0,a.kt)("pre",null,(0,a.kt)("code",n({parentName:"pre"},{className:"language-bash"}),"npm i puppeteer\n# or `yarn add puppeteer`\n# or `pnpm i puppeteer`\n")),(0,a.kt)("p",null,"When you install Puppeteer, it automatically downloads a recent version of Chromium (~170MB macOS, ~282MB Linux, ~280MB Windows) that is ",(0,a.kt)("a",n({parentName:"p"},{href:"https://pptr.dev/faq#q-why-doesnt-puppeteer-vxxx-work-with-chromium-vyyy"}),"guaranteed to work")," with Puppeteer. For a version of Puppeteer without installation, see ",(0,a.kt)("a",n({parentName:"p"},{href:"#puppeteer-core"}),(0,a.kt)("inlineCode",{parentName:"a"},"puppeteer-core")),"."),(0,a.kt)("h4",n({},{id:"environment-variables"}),"Environment Variables"),(0,a.kt)("p",null,"Puppeteer looks for certain ",(0,a.kt)("a",n({parentName:"p"},{href:"https://en.wikipedia.org/wiki/Environment_variable"}),"environment variables")," for customizing behavior.\nIf Puppeteer doesn't find them in the environment during the installation step, a lowercased variant of these variables will be used from the ",(0,a.kt)("a",n({parentName:"p"},{href:"https://docs.npmjs.com/cli/config"}),"npm config"),"."),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("inlineCode",{parentName:"li"},"HTTP_PROXY"),", ",(0,a.kt)("inlineCode",{parentName:"li"},"HTTPS_PROXY"),", ",(0,a.kt)("inlineCode",{parentName:"li"},"NO_PROXY")," - defines HTTP proxy settings that are used to download and run the browser."),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("inlineCode",{parentName:"li"},"PUPPETEER_CACHE_DIR")," - defines the directory to be used by Puppeteer for caching. Defaults to ",(0,a.kt)("a",n({parentName:"li"},{href:"https://nodejs.org/api/os.html#os_os_homedir"}),(0,a.kt)("inlineCode",{parentName:"a"},"os.homedir()/.cache/puppeteer")),"."),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("inlineCode",{parentName:"li"},"PUPPETEER_SKIP_CHROMIUM_DOWNLOAD")," - do not download bundled Chromium during installation step."),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("inlineCode",{parentName:"li"},"PUPPETEER_TMP_DIR")," - defines the directory to be used by Puppeteer for creating temporary files. Defaults to ",(0,a.kt)("a",n({parentName:"li"},{href:"https://nodejs.org/api/os.html#os_os_tmpdir"}),(0,a.kt)("inlineCode",{parentName:"a"},"os.tmpdir()")),"."),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("inlineCode",{parentName:"li"},"PUPPETEER_DOWNLOAD_HOST")," - specifies the URL prefix that is used to download Chromium. Note: this includes protocol and might even include path prefix. Defaults to ",(0,a.kt)("inlineCode",{parentName:"li"},"https://storage.googleapis.com"),"."),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("inlineCode",{parentName:"li"},"PUPPETEER_DOWNLOAD_PATH")," - specifies the path for the downloads folder. Defaults to ",(0,a.kt)("inlineCode",{parentName:"li"},"<cache>/chromium"),", where ",(0,a.kt)("inlineCode",{parentName:"li"},"<cache>")," is Puppeteer's cache directory."),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("inlineCode",{parentName:"li"},"PUPPETEER_BROWSER_REVISION")," - specifies a certain version of the browser you'd like Puppeteer to use. See ",(0,a.kt)("a",n({parentName:"li"},{href:"https://pptr.dev/api/puppeteer.puppeteernode.launch"}),(0,a.kt)("inlineCode",{parentName:"a"},"puppeteer.launch"))," on how executable path is inferred."),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("inlineCode",{parentName:"li"},"PUPPETEER_EXECUTABLE_PATH")," - specifies an executable path to be used in ",(0,a.kt)("a",n({parentName:"li"},{href:"https://pptr.dev/api/puppeteer.puppeteernode.launch"}),(0,a.kt)("inlineCode",{parentName:"a"},"puppeteer.launch")),"."),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("inlineCode",{parentName:"li"},"PUPPETEER_PRODUCT")," - specifies which browser you'd like Puppeteer to use. Must be either ",(0,a.kt)("inlineCode",{parentName:"li"},"chrome")," or ",(0,a.kt)("inlineCode",{parentName:"li"},"firefox"),". This can also be used during installation to fetch the recommended browser binary. Setting ",(0,a.kt)("inlineCode",{parentName:"li"},"product")," programmatically in ",(0,a.kt)("a",n({parentName:"li"},{href:"https://pptr.dev/api/puppeteer.puppeteernode.launch"}),(0,a.kt)("inlineCode",{parentName:"a"},"puppeteer.launch"))," supersedes this environment variable."),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("inlineCode",{parentName:"li"},"PUPPETEER_EXPERIMENTAL_CHROMIUM_MAC_ARM")," \u2014 specify Puppeteer download Chromium for Apple M1. On Apple M1 devices Puppeteer by default downloads the version for Intel's processor which runs via Rosetta. It works without any problems, however, with this option, you should get more efficient resource usage (CPU and RAM) that could lead to a faster execution time.")),(0,a.kt)("p",null,"Environment variables except for ",(0,a.kt)("inlineCode",{parentName:"p"},"PUPPETEER_CACHE_DIR")," are not used for ",(0,a.kt)("a",n({parentName:"p"},{href:"#puppeteer-core"}),(0,a.kt)("inlineCode",{parentName:"a"},"puppeteer-core"))," since core does not automatically handle browser downloading."),(0,a.kt)("h4",n({},{id:"puppeteer-core"}),(0,a.kt)("inlineCode",{parentName:"h4"},"puppeteer-core")),(0,a.kt)("p",null,"Every release since v1.7.0 we publish two packages:"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",n({parentName:"li"},{href:"https://www.npmjs.com/package/puppeteer"}),(0,a.kt)("inlineCode",{parentName:"a"},"puppeteer"))),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",n({parentName:"li"},{href:"https://www.npmjs.com/package/puppeteer-core"}),(0,a.kt)("inlineCode",{parentName:"a"},"puppeteer-core")))),(0,a.kt)("p",null,(0,a.kt)("inlineCode",{parentName:"p"},"puppeteer")," is a ",(0,a.kt)("em",{parentName:"p"},"product")," for browser automation. When installed, it downloads a version of\nChromium, which it then drives using ",(0,a.kt)("inlineCode",{parentName:"p"},"puppeteer-core"),". Being an end-user product, ",(0,a.kt)("inlineCode",{parentName:"p"},"puppeteer")," supports a bunch of convenient ",(0,a.kt)("inlineCode",{parentName:"p"},"PUPPETEER_*")," env variables to tweak its behavior."),(0,a.kt)("p",null,(0,a.kt)("inlineCode",{parentName:"p"},"puppeteer-core")," is a ",(0,a.kt)("em",{parentName:"p"},"library")," to help drive anything that supports DevTools protocol. ",(0,a.kt)("inlineCode",{parentName:"p"},"puppeteer-core")," doesn't download Chromium when installed. Being a library, ",(0,a.kt)("inlineCode",{parentName:"p"},"puppeteer-core")," is fully driven through its programmatic interface."),(0,a.kt)("p",null,"You should only use ",(0,a.kt)("inlineCode",{parentName:"p"},"puppeteer-core")," if you are ",(0,a.kt)("a",n({parentName:"p"},{href:"https://pptr.dev/api/puppeteer.puppeteer.connect"}),"connecting to a remote browser")," or ",(0,a.kt)("a",n({parentName:"p"},{href:"https://pptr.dev/api/puppeteer.browserfetcher"}),"managing browsers yourself"),". If you are managing browsers yourself, you will need to call ",(0,a.kt)("a",n({parentName:"p"},{href:"https://pptr.dev/api/puppeteer.puppeteernode.launch"}),(0,a.kt)("inlineCode",{parentName:"a"},"puppeteer.launch"))," with an explicit ",(0,a.kt)("a",n({parentName:"p"},{href:"https://pptr.dev/api/puppeteer.launchoptions.executablepath"}),(0,a.kt)("inlineCode",{parentName:"a"},"executablePath"))," or ",(0,a.kt)("a",n({parentName:"p"},{href:"https://pptr.dev/api/puppeteer.launchoptions.channel"}),(0,a.kt)("inlineCode",{parentName:"a"},"channel")),"."),(0,a.kt)("p",null,"When using ",(0,a.kt)("inlineCode",{parentName:"p"},"puppeteer-core"),", remember to change the import:"),(0,a.kt)("pre",null,(0,a.kt)("code",n({parentName:"pre"},{className:"language-ts"}),"import puppeteer from 'puppeteer-core';\n")),(0,a.kt)("h3",n({},{id:"usage"}),"Usage"),(0,a.kt)("p",null,"Puppeteer follows the latest ",(0,a.kt)("a",n({parentName:"p"},{href:"https://github.com/nodejs/Release#release-schedule"}),"maintenance LTS")," version of Node."),(0,a.kt)("p",null,"Puppeteer will be familiar to people using other browser testing frameworks. You ",(0,a.kt)("a",n({parentName:"p"},{href:"https://pptr.dev/api/puppeteer.puppeteernode.launch"}),"launch"),"/",(0,a.kt)("a",n({parentName:"p"},{href:"https://pptr.dev/api/puppeteer.puppeteernode.connect"}),"connect")," a ",(0,a.kt)("a",n({parentName:"p"},{href:"https://pptr.dev/api/puppeteer.browser"}),"browser"),", ",(0,a.kt)("a",n({parentName:"p"},{href:"https://pptr.dev/api/puppeteer.browser.newpage"}),"create")," some ",(0,a.kt)("a",n({parentName:"p"},{href:"https://pptr.dev/api/puppeteer.page"}),"pages"),", and then manipulate them with ",(0,a.kt)("a",n({parentName:"p"},{href:"https://pptr.dev/api"}),"Puppeteer's API"),"."),(0,a.kt)("p",null,"For more in-depth usage, check our ",(0,a.kt)("a",n({parentName:"p"},{href:"https://pptr.dev/guides"}),"guides")," and ",(0,a.kt)("a",n({parentName:"p"},{href:"https://github.com/puppeteer/puppeteer/tree/main/examples"}),"examples"),"."),(0,a.kt)("h4",n({},{id:"example"}),"Example"),(0,a.kt)("p",null,"The following example searches ",(0,a.kt)("a",n({parentName:"p"},{href:"https://developers.google.com/web"}),"developers.google.com/web"),' for articles tagged "Headless Chrome" and scrape results from the results page.'),(0,a.kt)("pre",null,(0,a.kt)("code",n({parentName:"pre"},{className:"language-ts"}),"import puppeteer from 'puppeteer';\n\n(async () => {\n const browser = await puppeteer.launch();\n const page = await browser.newPage();\n\n await page.goto('https://developers.google.com/web/');\n\n // Type into search box.\n await page.type('.devsite-search-field', 'Headless Chrome');\n\n // Wait for suggest overlay to appear and click \"show all results\".\n const allResultsSelector = '.devsite-suggest-all-results';\n await page.waitForSelector(allResultsSelector);\n await page.click(allResultsSelector);\n\n // Wait for the results page to load and display the results.\n const resultsSelector = '.gsc-results .gs-title';\n await page.waitForSelector(resultsSelector);\n\n // Extract the results from the page.\n const links = await page.evaluate(resultsSelector => {\n return [...document.querySelectorAll(resultsSelector)].map(anchor => {\n const title = anchor.textContent.split('|')[0].trim();\n return `${title} - ${anchor.href}`;\n });\n }, resultsSelector);\n\n // Print all the files.\n console.log(links.join('\\n'));\n\n await browser.close();\n})();\n")),(0,a.kt)("h3",n({},{id:"default-runtime-settings"}),"Default runtime settings"),(0,a.kt)("p",null,(0,a.kt)("strong",{parentName:"p"},"1. Uses Headless mode")),(0,a.kt)("p",null,"Puppeteer launches Chromium in ",(0,a.kt)("a",n({parentName:"p"},{href:"https://developers.google.com/web/updates/2017/04/headless-chrome"}),"headless mode"),". To launch a full version of Chromium, set the ",(0,a.kt)("a",n({parentName:"p"},{href:"https://pptr.dev/api/puppeteer.browserlaunchargumentoptions.headless"}),(0,a.kt)("inlineCode",{parentName:"a"},"headless"))," option when launching a browser:"),(0,a.kt)("pre",null,(0,a.kt)("code",n({parentName:"pre"},{className:"language-ts"}),"const browser = await puppeteer.launch({headless: false}); // default is true\n")),(0,a.kt)("p",null,(0,a.kt)("strong",{parentName:"p"},"2. Runs a bundled version of Chromium")),(0,a.kt)("p",null,"By default, Puppeteer downloads and uses a specific version of Chromium so its API\nis guaranteed to work out of the box. To use Puppeteer with a different version of Chrome or Chromium,\npass in the executable's path when creating a ",(0,a.kt)("inlineCode",{parentName:"p"},"Browser")," instance:"),(0,a.kt)("pre",null,(0,a.kt)("code",n({parentName:"pre"},{className:"language-ts"}),"const browser = await puppeteer.launch({executablePath: '/path/to/Chrome'});\n")),(0,a.kt)("p",null,"You can also use Puppeteer with Firefox Nightly (experimental support). See ",(0,a.kt)("a",n({parentName:"p"},{href:"https://pptr.dev/api/puppeteer.puppeteernode.launch"}),(0,a.kt)("inlineCode",{parentName:"a"},"Puppeteer.launch"))," for more information."),(0,a.kt)("p",null,"See ",(0,a.kt)("a",n({parentName:"p"},{href:"https://www.howtogeek.com/202825/what%E2%80%99s-the-difference-between-chromium-and-chrome/"}),(0,a.kt)("inlineCode",{parentName:"a"},"this article"))," for a description of the differences between Chromium and Chrome. ",(0,a.kt)("a",n({parentName:"p"},{href:"https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/chromium_browser_vs_google_chrome.md"}),(0,a.kt)("inlineCode",{parentName:"a"},"This article"))," describes some differences for Linux users."),(0,a.kt)("p",null,(0,a.kt)("strong",{parentName:"p"},"3. Creates a fresh user profile")),(0,a.kt)("p",null,"Puppeteer creates its own browser user profile which it ",(0,a.kt)("strong",{parentName:"p"},"cleans up on every run"),"."),(0,a.kt)("h4",n({},{id:"using-docker"}),"Using Docker"),(0,a.kt)("p",null,"See our ",(0,a.kt)("a",n({parentName:"p"},{href:"https://pptr.dev/guides/docker"}),"guide on using Docker"),"."),(0,a.kt)("h4",n({},{id:"using-chrome-extensions"}),"Using Chrome Extensions"),(0,a.kt)("p",null,"See our ",(0,a.kt)("a",n({parentName:"p"},{href:"https://pptr.dev/guides/chrome-extensions"}),"guide on using Chrome extensions"),"."),(0,a.kt)("h2",n({},{id:"resources"}),"Resources"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",n({parentName:"li"},{href:"https://pptr.dev/api"}),"API Documentation")),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",n({parentName:"li"},{href:"https://pptr.dev/guides"}),"Guides")),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",n({parentName:"li"},{href:"https://github.com/puppeteer/puppeteer/tree/main/examples"}),"Examples")),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("a",n({parentName:"li"},{href:"https://github.com/transitive-bullshit/awesome-puppeteer"}),"Community list of Puppeteer resources"))),(0,a.kt)("h2",n({},{id:"contributing"}),"Contributing"),(0,a.kt)("p",null,"Check out our ",(0,a.kt)("a",n({parentName:"p"},{href:"https://pptr.dev/contributing"}),"contributing guide")," to get an overview of Puppeteer development."),(0,a.kt)("h2",n({},{id:"faq"}),"FAQ"),(0,a.kt)("p",null,"Our ",(0,a.kt)("a",n({parentName:"p"},{href:"https://pptr.dev/faq"}),"FAQ")," has migrated to ",(0,a.kt)("a",n({parentName:"p"},{href:"https://pptr.dev/faq"}),"our site"),"."))}m.isMDXComponent=!0}}]); |