🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
Python aiai-scrapingautomationcrawlercrawlingcrawling-pythondatadata-extractionmcpmcp-serverplaywrightpythonscrapingselectorsstealthweb-scraperweb-scrapingweb-scraping-pythonwebscrapingxpath
agent: update the skill with the latest updates
Karim shoair9526bac808c9
diff --git a/agent-skill/Scrapling-Skill.zip b/agent-skill/Scrapling-Skill.zipindex 13970c3..f4a4681 100644Binary files a/agent-skill/Scrapling-Skill.zip and b/agent-skill/Scrapling-Skill.zip differdiff --git a/agent-skill/Scrapling-Skill/SKILL.md b/agent-skill/Scrapling-Skill/SKILL.mdindex 683bd5e..efcd3c2 100644--- a/agent-skill/Scrapling-Skill/SKILL.md+++ b/agent-skill/Scrapling-Skill/SKILL.md@@ -395,7 +395,7 @@ async with AsyncDynamicSession(capture_xhr=r"https://api\.example\.com/.*") as s## ReferencesYou already had a good glimpse of what the library can do. Use the references below to dig deeper when needed-- `references/mcp-server.md` - MCP server tools, persistent session management, and capabilities+- `references/mcp-server.md` - MCP server tools, persistent session management, remote browsers over CDP, authentication, and capabilities- `references/parsing` - Everything you need for parsing HTML- `references/fetching` - Everything you need to fetch websites and session persistence- `references/spiders` - Everything you need to write spiders, proxy rotation, and advanced features. It follows a Scrapy-like formatdiff --git a/agent-skill/Scrapling-Skill/references/fetching/dynamic.md b/agent-skill/Scrapling-Skill/references/fetching/dynamic.mdindex 4880ffb..20633ba 100644--- a/agent-skill/Scrapling-Skill/references/fetching/dynamic.md+++ b/agent-skill/Scrapling-Skill/references/fetching/dynamic.md@@ -41,6 +41,8 @@ DynamicFetcher.fetch('https://example.com', cdp_url='ws://localhost:9222')```Instead of launching a browser locally (Chromium/Google Chrome), you can connect to a remote browser through the [Chrome DevTools Protocol](https://chromedevtools.github.io/devtools-protocol/).+The URL can be a WebSocket endpoint (`ws://`/`wss://`), which is what managed browser providers hand out, or the HTTP endpoint of a browser started with `--remote-debugging-port` (`http://localhost:9222`).+**Notes:*** There was a `stealth` option here, but it was moved to the `StealthyFetcher` class, as explained on the next page, with additional features since version 0.3.13.diff --git a/agent-skill/Scrapling-Skill/references/mcp-server.md b/agent-skill/Scrapling-Skill/references/mcp-server.mdindex 8028216..31ae68d 100644--- a/agent-skill/Scrapling-Skill/references/mcp-server.md+++ b/agent-skill/Scrapling-Skill/references/mcp-server.md@@ -240,4 +240,58 @@ In a Claude Desktop configuration, add the option to the server arguments:You can also set the `SCRAPLING_EXECUTABLE_PATH` environment variable before starting the server. Tool calls can still pass `executable_path` directly when a single request or session needs a different browser executable. The `scrapling extract fetch` and `scrapling extract stealthy-fetch` CLI commands support the same `--executable-path` option and environment variable fallback.-The MCP server name when registering with a client is `ScraplingServer`. The command is the path to the `scrapling` binary and the argument is `mcp`.\ No newline at end of file+The MCP server name when registering with a client is `ScraplingServer`. The command is the path to the `scrapling` binary and the argument is `mcp`.++## Connecting to remote browsers++`open_session` doesn't have to launch a browser locally. Pass a `cdp_url` and it connects to an already-running browser through the Chrome DevTools Protocol, whether that browser is on the same machine, another host, or a managed browser provider. Both session types (`dynamic` and `stealthy`) accept it, and the `session_id` you get back is used with the fetch and screenshot tools as usual.++The URL can be a WebSocket endpoint (`ws://`/`wss://`), which is what managed browser providers hand out, or the HTTP endpoint of a browser started with `--remote-debugging-port=9222`, reached as `cdp_url="http://localhost:9222"`.++**Notes:**++- The browser is already running, so options that only apply while launching one are ignored for CDP sessions: `headless`, `real_chrome`, and `executable_path` (including the server-wide default).+- Everything else still applies (`locale`, `useragent`, `proxy`, `cookies`, `timezone_id`, and so on), as each session creates its own browser context on the remote browser.++## Authentication++The stdio transport is only reachable by the program that started it, but with Streamable HTTP anyone who can reach the port can call every tool, including fetching any URL from the machine running the server. If the server listens on anything other than localhost, give it a token:++```bash+scrapling mcp --http --auth-token "$(openssl rand -hex 32)"+```++Clients then have to send that token in an `Authorization` header, and any request without it is rejected with a `401`:++```json+{+ "mcpServers": {+ "ScraplingServer": {+ "url": "https://your-server.example.com/mcp",+ "headers": {+ "Authorization": "Bearer <your-token>"+ }+ }+ }+}+```++Passing the token on the command line leaves it in the shell history and the process list, so prefer the `SCRAPLING_MCP_AUTH_TOKEN` environment variable:++```bash+export SCRAPLING_MCP_AUTH_TOKEN="<your-token>"+scrapling mcp --http+```++When the server listens on a public address, also tell it which host names to accept, which turns on protection against DNS-rebinding attacks. The option can be repeated:++```bash+scrapling mcp --http --allowed-host 'your-server.example.com:8000'+```++**Notes:**++- Authentication applies to the Streamable HTTP transport only. It's ignored with stdio, and the server logs a warning to say so.+- Plain HTTP sends the token in cleartext, so put the server behind a reverse proxy that terminates TLS before exposing it to the internet.+- This is a single shared key, not per-client credentials, so every client uses the same token and rotating it means restarting the server.+- Starting with `--http` and no token still works for local use, but logs a warning that it's unauthenticated.\ No newline at end of file