Skip to content

docs: migrate homes-forsale SDK cookbook to v2 API (4/N)#94

Merged
VinciGit00 merged 1 commit into
mainfrom
docs/cookbook-homes-forsale-v2
May 12, 2026
Merged

docs: migrate homes-forsale SDK cookbook to v2 API (4/N)#94
VinciGit00 merged 1 commit into
mainfrom
docs/cookbook-homes-forsale-v2

Conversation

@Vikrant-Khedkar
Copy link
Copy Markdown
Collaborator

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

Summary

Fourth of N PRs (follows #91, #92, #93) restoring + migrating the cookbook notebooks that were removed in 1f3b123 to the v2 SDK API. This PR migrates cookbook/homes-forsale/scrapegraph_sdk.ipynb.

Migration

Old New
from scrapegraph_py import Client from scrapegraph_py import ScrapeGraphAI, FetchConfig
Client(api_key=...) ScrapeGraphAI() (auto-reads SGAI_API_KEY)
smartscraper(website_url=, user_prompt=, output_schema=HouseListingsSchema) extract(prompt, url=, schema=HouseListingsSchema.model_json_schema(), fetch_config=FetchConfig(stealth=True))
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 (517 KB inline base64) New ScrapeGraphAI banner (193 KB inline base64)

Notes

  • Stealth fetch enabledhomes.com has anti-bot defenses; passing FetchConfig(stealth=True) is necessary for the live API run to return real data.

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())
- Add FetchConfig(stealth=True) since homes.com has anti-bot defenses
- 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-homes-forsale-v2 branch from 408d59f to 7a6fe9d Compare May 12, 2026 07:04
@Vikrant-Khedkar Vikrant-Khedkar marked this pull request as ready for review May 12, 2026 07:04
@VinciGit00 VinciGit00 merged commit 068a296 into main May 12, 2026
6 checks passed
@VinciGit00 VinciGit00 deleted the docs/cookbook-homes-forsale-v2 branch May 12, 2026 07:08
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