跳转到主要内容

章节Cloudflare 开发者文档(免费档)

Browser Run

53 页更新于 4 天前

开始阅读

本章内容53

  1. 01 Changelog This is a detailed changelog of every update to Browser Run (formerly Browser Rendering). For a higher-leve... 10 小时前
  2. 02 Examples Quick Actions examples Use these Quick Actions examples to perform common tasks with a single HTTP request.... 10 小时前
  3. 03 FAQ Below you will find answers to our most commonly asked questions about Browser Run (formerly Browser Render... 10 小时前
  4. 04 Get started Cloudflare Browser Run (formerly Browser Rendering) allows you to programmatically control a headless brows... 10 小时前
  5. 05 Browser Run Run headless Chrome on Cloudflare's global network for browser automation, web scraping, testing, and conte... 10 小时前
  6. 06 Kitesurf Kitesurf is Cloudflare's stateless, highly scalable browser that runs entirely on top of Workers and is des... 10 小时前
  7. 07 Limits Browser Run limits are based on your Cloudflare Workers plan. For pricing information, refer to Browser Run... 10 小时前
  8. 08 Pricing Billing depends on how you use Browser Run: Quick Actions: Charged for browser hours only. Browser Sessions... 10 小时前
  9. 09 Puppeteer Puppeteer is one of the most popular libraries that abstract the lower-level DevTools protocol from develop... 10 小时前
  10. 10 Stagehand Stagehand is an open-source, AI-powered browser automation library. Stagehand lets you combine code with na... 10 小时前
  11. 11 Chrome DevTools Protocol (CDP) The /devtools endpoints provide session management capabilities that follow the Chrome DevTools Protocol (... 10 小时前
  12. 12 Using with MCP clients (CDP) You can use the CDP endpoints with AI coding agents through the Model Context Protocol (MCP). The chrome-de... 10 小时前
  13. 13 Using with Playwright (CDP) You can use Playwright to connect to Browser Run sessions from any Node.js environment and automate browser... 10 小时前
  14. 14 Using with Puppeteer (CDP) You can use Puppeteer to connect to Browser Run sessions from any Node.js environment and automate browser ... 10 小时前
  15. 15 Session management (HTTP) Use the HTTP API to manage browser sessions and tabs without using WebSocket connections. This is useful fo... 10 小时前
  16. 16 Custom fonts Browser Run uses a managed Chromium environment that includes a standard set of pre-installed fonts. When y... 10 小时前
  17. 17 Guardrails Guardrails limit a Browser Run session's HTTP and HTTPS requests to permitted hostnames. This allows you to... 10 小时前
  18. 18 Human in the Loop Some browser automation workflows require manual intervention. A login page may need multi-factor authentic... 10 小时前
  19. 19 Additional features 10 小时前
  20. 20 Live View Live View lets you see and interact with a remote Browser Run session in real time. This is useful for debu... 10 小时前
  21. 21 Outbound Workers Use outboundByHost to send browser requests for selected hostnames through another Worker. The outbound Wo... 10 小时前
  22. 22 Reuse sessions By default, each Browser Sessions request launches a new browser instance. Reusing sessions eliminates cold... 10 小时前
  23. 23 Session recording When browser automation fails or behaves unexpectedly, it can be difficult to understand what happened. Ses... 10 小时前
  24. 24 WebMCP WebMCP (Web Model Context Protocol) is a browser API that lets websites expose structured tools for AI agen... 10 小时前
  25. 25 Deploy a Browser Run Worker with Durable Objects By following this guide, you will create a Worker that uses the Browser Run API along with Durable Objects ... 10 小时前
  26. 26 Deploy a Browser Run Worker By following this guide, you will create a Worker that uses the Browser Run API to take screenshots from we... 10 小时前
  27. 27 Extract a brand kit from any website A brand kit is the set of visual design decisions that make a website recognizable: its colors, typography,... 10 小时前
  28. 28 Tutorials 10 小时前
  29. 29 Generate OG images for Astro sites Open Graph (OG) images are the preview images that appear when you share a link on social media. Instead of... 10 小时前
  30. 30 Generate PDFs Using HTML and CSS As seen in the Deploy a Browser Run Worker guide, Browser Run can be used to generate screenshots for any g... 10 小时前
  31. 31 Pre-render pages for crawlers Pre-rendering generates the final HTML for a page before returning it to a client. For JavaScript-heavy app... 10 小时前
  32. 32 Playwright Playwright is an open-source package developed by Microsoft that can do browser automation tasks; it is com... 10 小时前
  33. 33 Playwright MCP @cloudflare/playwright-mcp is a Playwright MCP server fork that provides browser automation capabilities us... 10 小时前
  34. 34 /accessibilityTree - Capture accessibility tree The /accessibilityTree endpoint instructs the browser to navigate to a website and capture the page's acce... 10 小时前
  35. 35 /content - Fetch HTML The /content endpoint instructs the browser to navigate to a website and capture the fully rendered HTML o... 10 小时前
  36. 36 /crawl - Crawl web content The /crawl endpoint scrapes content from a starting URL and follows links across the site, up to a configu... 10 小时前
  37. 37 Quick Actions Quick Actions provide simple interfaces for common browser tasks like capturing screenshots, extracting HTM... 10 小时前
  38. 38 /json - Capture structured data using AI The /json endpoint extracts structured data from a webpage. You can specify the expected output using eith... 10 小时前
  39. 39 /links - Retrieve links from a webpage The /links endpoint retrieves all links from a webpage. It can be used to extract all links from a page, i... 10 小时前
  40. 40 /markdown - Extract Markdown from a webpage The /markdown endpoint retrieves a webpage's content and converts it into Markdown format. You can specify... 10 小时前
  41. 41 /pdf - Render PDF The /pdf endpoint instructs the browser to generate a PDF of a webpage or custom HTML using Cloudflare's h... 10 小时前
  42. 42 /scrape - Scrape HTML elements The /scrape endpoint extracts structured data from specific elements on a webpage, returning details such ... 10 小时前
  43. 43 /screenshot - Capture screenshot The /screenshot endpoint renders the webpage by processing its HTML and JavaScript, then captures a screen... 10 小时前
  44. 44 /snapshot - Capture multiple page formats Browser Run provides individual endpoints for HTML content, screenshots, Markdown, and more. The /snapshot... 10 小时前
  45. 45 Automatic request headers Cloudflare automatically attaches headers to every request made through Browser Run. These headers make it ... 4 天前
  46. 46 Browser binding API The Browser Run binding provides typed methods for browser session management from a Cloudflare Worker. Use... 10 小时前
  47. 47 Browser close reasons A browser session may close for a variety of reasons, including normal completion, inactivity, connection e... 10 小时前
  48. 48 Reference 10 小时前
  49. 49 robots.txt and sitemaps This page provides general guidance on configuring robots.txt and sitemaps for websites you plan to access... 4 天前
  50. 50 Supported fonts Browser Run uses a managed Chromium environment that includes a standard set of fonts. When you generate a ... 4 天前
  51. 51 Quick Actions timeouts Browser Run uses several independent timers to manage how long different parts of a request can take. If an... 10 小时前
  52. 52 Wrangler commands Use wrangler browser commands to manage Browser Run sessions from the command line. 10 小时前
  53. 53 Wrangler Wrangler is a command-line tool for building with Cloudflare developer products. Use Wrangler to deploy pro... 10 小时前