Skip to content

docs: migrate wired-news SDK cookbook to v2 API (3/N)#93

Merged
VinciGit00 merged 2 commits intomainfrom
docs/cookbook-wired-news-v2
May 11, 2026
Merged

docs: migrate wired-news SDK cookbook to v2 API (3/N)#93
VinciGit00 merged 2 commits intomainfrom
docs/cookbook-wired-news-v2

Conversation

@Vikrant-Khedkar
Copy link
Copy Markdown
Collaborator

@Vikrant-Khedkar Vikrant-Khedkar commented May 11, 2026

Summary

Third of N PRs (follows #91, #92) restoring + migrating the cookbook notebooks that were removed in 1f3b123 to the v2 SDK API. This PR migrates cookbook/wired-news/scrapegraph_sdk.ipynb and swaps the outdated banner image.

Migration

Old New
from scrapegraph_py import Client from scrapegraph_py import ScrapeGraphAI
Client(api_key=...) ScrapeGraphAI() (auto-reads SGAI_API_KEY)
smartscraper(website_url=, user_prompt=, output_schema=ListNewsSchema) extract(prompt, url=, schema=ListNewsSchema.model_json_schema())
response['result'] / response['request_id'] response.data.json_data + .status / .error check
broken async link → examples/async_smartscraper_example.py (404) examples/extract/extract_basic_async.py
https://dashboard.scrapegraphai.com/ https://scrapegraphai.com/dashboard
Old "Presentazione" banner (337 KB inline base64) New ScrapeGraphAI banner (185 KB inline base64)

Validation

  • Tested locally end-to-end against live API — runs clean, dataframe renders, CSV written

Follow-ups (separate PRs, not blocking)

🤖 Generated with Claude Code

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 11, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

- Client -> ScrapeGraphAI (auto-reads SGAI_API_KEY)
- smartscraper(website_url=, user_prompt=, output_schema=)
  -> extract(prompt, url=, schema=model_json_schema())
- Response shape: response['result'] -> response.data.json_data
- Fix broken async example link
- Update dashboard URL: dashboard.scrapegraphai.com -> scrapegraphai.com/dashboard
- Swap outdated banner image

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Vikrant-Khedkar Vikrant-Khedkar force-pushed the docs/cookbook-wired-news-v2 branch from c4b8574 to b80fe30 Compare May 11, 2026 11:50
@Vikrant-Khedkar Vikrant-Khedkar marked this pull request as ready for review May 11, 2026 11:51
- Add versioning & release section to CLAUDE.md describing semantic-release commit conventions
- Polish company-info, github-trending, and wired-news SDK cookbook notebooks
- Refresh uv.lock

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@VinciGit00 VinciGit00 merged commit 6c40ff5 into main May 11, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants