Skip to content

fix(docs): re-apply v2 API migration to company-info cookbook notebook#96

Merged
VinciGit00 merged 1 commit into
mainfrom
docs/fix-company-info-v2-regression
May 14, 2026
Merged

fix(docs): re-apply v2 API migration to company-info cookbook notebook#96
VinciGit00 merged 1 commit into
mainfrom
docs/fix-company-info-v2-regression

Conversation

@Vikrant-Khedkar
Copy link
Copy Markdown
Collaborator

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

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

Cell Before (on main) After
5 https://dashboard.scrapegraphai.com/ https://scrapegraphai.com/dashboard
11 broken async link → examples/async_smartscraper_example.py (404) examples/extract/extract_basic_async.py
12 from scrapegraph_py import Client + Client(api_key=sgai_api_key) from scrapegraph_py import ScrapeGraphAI + ScrapeGraphAI()
13 "Smartscraper service" / "Localscraper" terminology extract method + html= / markdown= inputs
14 smartscraper(website_url=, user_prompt=, output_schema=CompanyInfoSchema) extract(prompt, url=, schema=CompanyInfoSchema.model_json_schema())
16 response['request_id'] / response['result'] dict-style response.data.json_data + .status / .error check
28 footer dashboard link scrapegraphai.com/dashboard

Same 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

  • Run notebook end-to-end against live API (this time actually verifying the migration is in the file before declaring it works)
  • Visual review

🤖 Generated with Claude Code

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>
@github-actions
Copy link
Copy Markdown

Dependency Review

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

Scanned Files

None

@Vikrant-Khedkar Vikrant-Khedkar marked this pull request as ready for review May 14, 2026 10:02
@VinciGit00 VinciGit00 merged commit cc6fd33 into main May 14, 2026
6 checks passed
@VinciGit00 VinciGit00 deleted the docs/fix-company-info-v2-regression branch May 14, 2026 10:17
github-actions Bot pushed a commit that referenced this pull request May 14, 2026
## [2.1.2](v2.1.1...v2.1.2) (2026-05-14)

### Bug Fixes

* **docs:** re-apply v2 API migration to company-info cookbook notebook ([#96](#96)) ([cc6fd33](cc6fd33)), closes [#91](#91)
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 2.1.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants