MyGit
🚩收到GitHub仓库的更新通知

puppeteer/puppeteer

Fork: 8967 Star: 86659 (更新于 2024-04-14 00:01:53)

license: Apache-2.0

Language: TypeScript .

Node.js API for Chrome

最后发布版本: puppeteer-core-v22.6.4 ( 2024-04-12 00:51:17)

官方网址 GitHub网址

✨免费申请网站SSL证书,支持多域名和泛域名,点击查看

Puppeteer

build npm puppeteer package

Puppeteer is a Node.js library which provides a high-level API to control Chrome/Chromium over the DevTools Protocol. Puppeteer runs in headless mode by default, but can be configured to run in full ("headful") Chrome/Chromium.

Get started | API | FAQ | Contributing | Troubleshooting

Example

import puppeteer from 'puppeteer';

(async () => {
  // Launch the browser and open a new blank page
  const browser = await puppeteer.launch();
  const page = await browser.newPage();

  // Navigate the page to a URL
  await page.goto('https://developer.chrome.com/');

  // Set screen size
  await page.setViewport({width: 1080, height: 1024});

  // Type into search box
  await page.type('.devsite-search-field', 'automate beyond recorder');

  // Wait and click on first result
  const searchResultSelector = '.devsite-result-item-link';
  await page.waitForSelector(searchResultSelector);
  await page.click(searchResultSelector);

  // Locate the full title with a unique string
  const textSelector = await page.waitForSelector(
    'text/Customize and automate'
  );
  const fullTitle = await textSelector?.evaluate(el => el.textContent);

  // Print the full title
  console.log('The title of this blog post is "%s".', fullTitle);

  await browser.close();
})();

最近版本更新:(数据更新于 2024-04-14 00:01:37)

2024-04-12 00:51:17 puppeteer-core-v22.6.4

2024-04-12 00:51:16 puppeteer-v22.6.4

2024-04-05 21:12:54 browsers-v2.2.1

2024-04-05 21:12:53 puppeteer-core-v22.6.3

2024-04-05 21:12:52 puppeteer-v22.6.3

2024-03-28 21:36:46 puppeteer-core-v22.6.2

2024-03-28 21:36:45 puppeteer-v22.6.2

2024-03-25 21:04:07 puppeteer-core-v22.6.1

2024-03-25 21:04:06 puppeteer-v22.6.1

2024-03-20 16:57:13 puppeteer-core-v22.6.0

主题(topics):

automation, chrome, chromium, developer-tools, headless-chrome, node-module, testing, web

puppeteer/puppeteer同语言 TypeScript最近更新仓库

2024-04-26 12:57:21 labring/FastGPT

2024-04-26 11:32:21 x-extends/vxe-table

2024-04-26 05:32:02 microsoft/TypeScript

2024-04-26 01:32:13 bluesky-social/atproto

2024-04-25 23:53:42 siyuan-note/siyuan

2024-04-25 23:34:47 angular/angular