web-search-scraper-api-skill
This skill helps users automatically extract complete Markdown content from any website via the BrowserAct Web Search Scraper API. The Agent should proactively apply this skill when users express needs like extract complete markdown from a specific website, scrape the content of an article link, get the text from a target url, convert a webpage to markdown format, fetch the main content of a blog post, extract data from a given web page, parse the html of a website into markdown, download the readable text from a news article, obtain the content of a tutorial page, extract all the markdown text from any http or https url, scrape documentation from a web link, or grab the text of a single webpage.
What this skill does
# Web Search Scraper API Skill ## ๐ Introduction This skill provides users with a one-stop web page extraction service through the BrowserAct Web Search Scraper API template. It can directly extract structured markdown content from any given URL. By simply inputting the target URL, you can get clean and usable markdown data. ## โจ Features 1. **No hallucinations, ensuring stable and precise data extraction**: Pre-set workflows avoid AI generative hallucinations. 2. **No human-machine verification issues**: No need to deal with reCAPTCHA or other verification challenges. 3. **No IP access restrictions or geofencing**: No need to handle regional IP limitations. 4. **More agile execution speed**: Compared to purely AI-driven browser automation solutions, task execution is faster. 5. **Extremely high cost-effectiveness**: Compared to AI solutions that consume a lot of Tokens, it can significantly reduce the cost of data acquisition. ## ๐ API Key Guidance Process Before running, you must check the `BROWSERACT_API_KEY` environment variable. If it is not set, do not take other actions first; you should ask and wait for the user to provide it cooperatively. **The Agent must inform the user at this time**: > "Since you have not configured the BrowserAct API Key, please go to the [BrowserAct Console](https://www.browseract.com/reception/integrations) first to get your Key." ## ๐ ๏ธ Input Parameters Details Agent should flexibly configure the following parameters based on user needs when calling the script: 1. **target_url** - **Type**: `string` - **Description**: The website URL to extract content from. Supports any HTTP/HTTPS URL. - **Example**: `https://www.browseract.com` ## ๐ Invocation Method (Recommended) Agent should execute the following independent script to achieve "one command gets the result": ```bash # Example invocation python -u ./scripts/web_search_scraper_api.py "target_url" ``` ### โณ Execution Status Monitoring Since the task involves automated browser operations, it may take a long time (several minutes). The script will **continuously output status logs with timestamps** (e.g., `[14:30:05] Task Status: running`) while running. **Notice for Agent**: - While waiting for the script to return results, please keep paying attention to the terminal output. - As long as the terminal is still outputting new status logs, it means the task is running normally. Do not misjudge it as a deadlock or unresponsiveness. - If the status remains unchanged for a long time or the script stops outputting and no result is returned, the retry mechanism can be triggered. ## ๐ Data Output Description Upon successful execution, the script will directly parse and print the result from the API response. The result contains: - `content`: The complete markdown content of the webpage. ## โ ๏ธ Error Handling & Retry Mechanism During the execution of the script, if an error occurs (such as network fluctuation or task failure), the Agent should follow this logic: 1. **Check the output content**: - If the output **contains** `"Invalid authorization"`, it means the API Key is invalid or expired. At this time, **do not retry**, and you should guide the user to recheck and provide the correct API Key. - If the output **does not contain** `"Invalid authorization"` but the task execution fails (for example, the output starts with `Error:` or the returned result is empty), the Agent should **automatically try to re-execute the script once**. 2. **Retry limit**: - Automatic retry is limited to **once**. If the second attempt still fails, stop retrying and report the specific error message to the user. ## ๐ Typical Use Cases 1. **Article Extraction**: Scrape the main content of a news article link into markdown. 2. **Blog Post Parsing**: Download the readable text from a target blog post URL. 3. **Webpage to Markdown**: Convert any given website URL into clean markdown format. 4. **Documentation Scraping**: Fetch the contents of a tutorial or documentation page for offline reading. 5. **Content Monitoring**: Automatically extract the text from a specific webpage for updates. 6. **Data Processing**: Parse the HTML of an arbitrary HTTP/HTTPS URL to structure its content.
Related in Web Dev
generating-lwc-components
IncludedLightning Web Components with PICKLES methodology and 165-point scoring. Use this skill when the user creates or edits LWC components, builds wire service patterns, or writes Jest tests for LWC. TRIGGER when: user creates/edits LWC components, touches lwc/**/*.js, .html, .css, .js-meta.xml files, or asks about wire service, SLDS, or Jest LWC tests. DO NOT TRIGGER when: Apex classes (use generating-apex), Aura components, or Visualforce.
tanstack-query
IncludedManage server state in React with TanStack Query v5. Set up queries with useQuery, mutations with useMutation, configure QueryClient caching strategies, implement optimistic updates, and handle infinite scroll with useInfiniteQuery. Use when: setting up data fetching in React projects, migrating from v4 to v5, or fixing object syntax required errors, query callbacks removed issues, cacheTime renamed to gcTime, isPending vs isLoading confusion, keepPreviousData removed problems.
document-processor-api
IncludedProcess documents with Nutrient DWS. Use when the user wants to generate PDFs from HTML or URLs, convert Office/images/PDFs, assemble or split packets, OCR scans, extract text/tables/key-value pairs, redact PII, watermark, sign, fill forms, optimize PDFs, or produce compliance outputs like PDF/A or PDF/UA. Triggers include convert to PDF, merge these PDFs, OCR this scan, extract tables, redact PII, sign this PDF, make this PDF/A, or linearize for web delivery.
nutrient-document-processing
IncludedProcess documents with Nutrient DWS. Use when the user wants to generate PDFs from HTML or URLs, convert Office/images/PDFs, assemble or split packets, OCR scans, extract text/tables/key-value pairs, redact PII, watermark, sign, fill forms, optimize PDFs, or produce compliance outputs like PDF/A or PDF/UA. Triggers include convert to PDF, merge these PDFs, OCR this scan, extract tables, redact PII, sign this PDF, make this PDF/A, or linearize for web delivery.
tanstack-query
IncludedManage server state in React with TanStack Query v5. Covers useMutationState, simplified optimistic updates, throwOnError, network mode (offline/PWA), and infiniteQueryOptions. Use when setting up data fetching, fixing v4โv5 migration errors (object syntax, gcTime, isPending, keepPreviousData), or debugging SSR/hydration issues with streaming server components.
accelint-nextjs-best-practices
IncludedNext.js performance optimization and best practices. Use when writing Next.js code (App Router or Pages Router); implementing Server Components, Server Actions, or API routes; optimizing RSC serialization, data fetching, or server-side rendering; reviewing Next.js code for performance issues; fixing authentication in Server Actions; or implementing Suspense boundaries, parallel data fetching, or request deduplication.