DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to scrape a web page by describing what you want with Scrapegraph AI

Point SmartScraperGraph at a URL with a prompt and get back a JSON dictionary of the fields you asked for.

Short answer: Run pip install scrapegraphai inside a virtual environment; then run playwright install so the library can fetch website content; set graph_config with an llm block, for example the ollama/llama3.2 model, or an api_key and openai/gpt-4o-mini. All steps.

Credentials. Hosted models need an API key in the config; keep it in an environment variable rather than in the script.

Who it is forAn analyst who needs company descriptions, founders or links from many sites without writing selectors.

The problemSelector-based scrapers break whenever a site changes and take time to write for every new layout.

The outcomeA JSON result with exactly the information your prompt asked for.

What you need first

  • Python, ideally in a virtual environment
  • Playwright browsers, installed with playwright install
  • An LLM: a local model through Ollama, or an API key for OpenAI, Groq, Azure, Gemini or another provider

Steps

  1. Run pip install scrapegraphai inside a virtual environment
  2. Run playwright install so the library can fetch website content
  3. Set graph_config with an llm block, for example the ollama/llama3.2 model, or an api_key and openai/gpt-4o-mini
  4. Create a SmartScraperGraph with your prompt, the source URL and the config
  5. Call smart_scraper_graph.run() and print or save the dictionary it returns

Prompt for your agent

Using ScrapeGraphAI/Scrapegraph-ai with <ollama/llama3.2 or my OpenAI key from the environment>, build a SmartScraperGraph that visits each URL in <list> and extracts <fields>. Save all results to one JSON file and flag any page where a field came back empty.

Caveat. LLM extraction can miss or invent fields, so spot check results; also respect each site's terms and robots rules.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for ScrapeGraphAI/Scrapegraph-ai and "Scrape a web page by describing what you want"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer