skills/browser-automation/SKILL.md
Playwright-based browser automation for scraping JavaScript-rendered scientific databases
npx skillsauth add lamm-mit/scienceclaw browser-automationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Web browser automation using Playwright for scraping JavaScript-rendered scientific databases, automating form submissions, and capturing dynamic content unavailable via static scraping. Renders pages fully (including React/Vue/Angular SPAs) and extracts clean text content.
Useful for databases that require JavaScript to display data, interactive tools that need form interaction, and pages where content loads asynchronously after the initial HTML response.
# Fetch a JavaScript-rendered page
python3 skills/browser-automation/scripts/browser_fetch.py \
--url "https://www.rcsb.org/structure/1TUP"
# Wait for specific element before extracting
python3 skills/browser-automation/scripts/browser_fetch.py \
--url "https://www.ncbi.nlm.nih.gov/gene/672" \
--wait-for ".gene-summary"
# Extract text content
python3 skills/browser-automation/scripts/browser_fetch.py \
--url "https://www.ebi.ac.uk/chembl/compound_report_card/CHEMBL25/" \
--extract-text
# Save screenshot
python3 skills/browser-automation/scripts/browser_fetch.py \
--url "https://alphafold.ebi.ac.uk/entry/P04637" \
--screenshot /tmp/p53_alphafold.png
{
"url": "https://www.rcsb.org/structure/1TUP",
"content": "1TUP Structure Summary\n\nTumor suppressor p53 bound to DNA...",
"title": "RCSB PDB - 1TUP",
"status": "success"
}
Install Playwright and its browser binaries:
pip install playwright
playwright install chromium
tools
Onboard and manage Paperclip AI for research-paper knowledge and agent orchestration
development
Perform AI-powered web searches with real-time information using Perplexity models via LiteLLM and OpenRouter. This skill should be used when conducting web searches for current information, finding recent scientific literature, getting grounded answers with source citations, or accessing information beyond the model knowledge cutoff. Provides access to multiple Perplexity models including Sonar Pro, Sonar Pro Search (advanced agentic search), and Sonar Reasoning Pro through a single OpenRouter API key.
testing
Generate a structured scientific PDF report from a JSON description. Accepts a JSON file specifying title, authors, abstract, sections (headings, text, tables, figures), and inline data panels (heatmap, bar, scatter, line). Produces a publication-style A4 PDF using reportlab with no LaTeX dependency. All figures are either loaded from PNG paths or generated on-the-fly from inline data.
development
Execute arbitrary Python code and return stdout. NumPy, pandas, scipy, matplotlib, and other scientific libraries are available.