agentsclimarketplace

Data scraper agent

Skill marshal-rizky/PC-OPTIMIZER/skills/data-scraper-agent

AI-powered web scraper for gathering PC optimization data. Takes a system profile JSON and returns ranked optimization tweaks found on the web, with source URLs and confidence scores. Handles VM mode with adapted search queries.From its SKILL.md

Install
npx -y skills add marshal-rizky/PC-OPTIMIZER --skill data-scraper-agent

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

5.5 KB, as published. Nobody here has run it

Data Scraper Agent

You are a research agent. Your job is to scrape the web for PC optimization tweaks relevant to the provided system profile, then return a structured JSON list of discovered tweaks ranked by expected impact.

Input

You will receive a system-profile.json blob with fields:

  • Model - machine model (e.g., "ASUS UX363EA" or "VirtualBox")
  • CPU - processor name
  • RAM_GB - total RAM
  • GPU - GPU name
  • IsVM - boolean
  • VMType - e.g., "VirtualBox" or "Physical"
  • CurrentPowerPlan - active power plan GUID
  • Services - list of running services
  • PreviousOptimizerSession - path if optimizer has run before

Search Strategy

If IsVM is true, use these search queries:

  1. windows 11 virtualbox performance optimization registry
  2. disable windows 11 services virtual machine speed
  3. windows 11 vm debloat powershell tweaks
  4. windows 11 network performance tweaks registry

If IsVM is false, use these search queries (substituting actual model/CPU):

  1. ASUS UX363EA windows 11 performance optimization
  2. i7-1165G7 disable cpu parking windows 11
  3. Intel Iris Xe GPU scheduler optimization windows 11
  4. UX363EA fan control WMI ACPI windows 11
  5. windows 11 aggressive performance tweaks registry 2024
  6. r/ASUS UX363EA performance tweaks

How to Scrape

Step 1: Check Python dependencies

Run:

python --version 2>&1
python -c "import requests, bs4; print('OK')" 2>&1

If dependencies missing, install:

pip install requests beautifulsoup4 --quiet

If Python is not available at all, fall back to WebFetch for each URL (Step 2 still applies, use WebFetch tool instead of Python).

Step 2: Write and execute the scraper

Write this to a temp file C:\Temp\pc-scraper.py and run it:

import sys, json, re
import requests
from bs4 import BeautifulSoup

HEADERS = {
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 Chrome/120.0.0.0 Safari/537.36"
}

def fetch_text(url):
    try:
        r = requests.get(url, headers=HEADERS, timeout=10)
        soup = BeautifulSoup(r.text, "html.parser")
        for tag in soup(["script","style","nav","footer","header"]):
            tag.decompose()
        return soup.get_text(separator=" ", strip=True)[:8000]
    except Exception as e:
        return f"ERROR: {e}"

def search_bing(query):
    url = f"https://www.bing.com/search?q={requests.utils.quote(query)}&count=5"
    try:
        r = requests.get(url, headers=HEADERS, timeout=10)
        soup = BeautifulSoup(r.text, "html.parser")
        results = []
        for a in soup.select("li.b_algo h2 a")[:5]:
            href = a.get("href","")
            title = a.get_text(strip=True)
            if href.startswith("http"):
                results.append({"title": title, "url": href})
        return results
    except:
        return []

profile = json.loads(sys.argv[1])
is_vm = profile.get("IsVM", False)

if is_vm:
    queries = [
        "windows 11 virtualbox performance optimization registry",
        "disable windows 11 services virtual machine speed",
        "windows 11 vm debloat powershell tweaks",
    ]
else:
    model = profile.get("Model","")
    cpu = profile.get("CPU","i7-1165G7")
    queries = [
        f"{model} windows 11 performance optimization",
        f"{cpu} disable cpu parking windows 11",
        "Intel Iris Xe GPU scheduler optimization windows 11",
        "windows 11 aggressive performance tweaks registry 2025",
    ]

all_results = []
for q in queries:
    results = search_bing(q)
    for r in results[:3]:
        text = fetch_text(r["url"])
        r["content_snippet"] = text[:2000]
        all_results.append(r)

print(json.dumps(all_results, ensure_ascii=False))

Run it:

python C:\Temp\pc-scraper.py '<SYSTEM_PROFILE_JSON_ESCAPED>'

Step 3: Analyze and rank tweaks

Read the scraped content. For each discovered optimization tweak, extract:

  • What it does
  • How to apply it (registry key, PowerShell command, etc.)
  • Risk level: Low / Medium / High
  • Estimated impact: Low / Medium / High
  • Source URL
  • Confidence score (0.0-1.0) based on how many sources mention it

Step 4: Filter tweaks

Remove tweaks that:

  • Are already covered by the hardcoded batches (Power, Bloat, Registry, Network, Memory, Visual)
  • Require hardware not present (e.g., NVIDIA GPU tweaks on an Intel Iris Xe machine)
  • Are desktop-only (e.g., overclocking RAM) and not applicable to a laptop/VM
  • Have risk level High and impact Low

Step 5: Output

Return a JSON array of additional tweaks:

[
  {
    "name": "Disable Windows Search Indexing on SSD",
    "description": "Reduces background I/O on NVMe drives. Redundant on fast SSDs.",
    "apply_command": "Set-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Services\\WSearch' -Name Start -Value 4",
    "risk": "Low",
    "impact": "Medium",
    "source_url": "https://example.com/ssd-optimization",
    "confidence": 0.85
  }
]

If no additional tweaks are found beyond the hardcoded batches, return [].

Error Handling

  • If Bing blocks the scraper, try DuckDuckGo: https://duckduckgo.com/html/?q=<query>
  • If all scraping fails, return [] - the hardcoded batches still apply
  • Never crash the pipeline - always return valid JSON

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.