fix(docs): re-apply v2 API migration to company-info cookbook notebook#96
Merged
Merged
Conversation
PR #91 merged with the v1 API still in the file -- the migration script ran but Jupyter autosave overwrote it before commit. Re-applying: - 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 + status check - Fix broken async example link - Update dashboard URL: dashboard.scrapegraphai.com -> scrapegraphai.com/dashboard Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
VinciGit00
approved these changes
May 14, 2026
|
🎉 This PR is included in version 2.1.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes a regression: PR #91 merged with the v1 API still in the file. The migration script ran fine during development but Jupyter autosave overwrote it before the commit. Cells 11, 12, 14, 16 currently on main are pre-migration content.
Cells fixed
https://dashboard.scrapegraphai.com/https://scrapegraphai.com/dashboardexamples/async_smartscraper_example.py(404)examples/extract/extract_basic_async.pyfrom scrapegraph_py import Client+Client(api_key=sgai_api_key)from scrapegraph_py import ScrapeGraphAI+ScrapeGraphAI()extractmethod +html=/markdown=inputssmartscraper(website_url=, user_prompt=, output_schema=CompanyInfoSchema)extract(prompt, url=, schema=CompanyInfoSchema.model_json_schema())response['request_id']/response['result']dict-styleresponse.data.json_data+.status/.errorcheckscrapegraphai.com/dashboardSame template applied to the other 3 SDK cookbook notebooks (
github-trending,wired-news,homes-forsale) which are already on v2 on main.Pending before this leaves draft
🤖 Generated with Claude Code