Skip to content

Commit 49d76b3

Browse files
authored
Related to [SCR-44]: Add support for remaining ScrapingBee APIs (#20)
* Added Remaining APIs - Changed the request method such that it can work with all of our APIs - Added all APIs. Now it supports HTML API, Google Search API, Amazon Search API, Amazon Product API, Walmart Search API, Walmart Product API, ChatGPT API, YouTube Search API, YouTube Metadata API, YouTube Trainability API, YouTube Transcript API - Added a method to call our usage endpoint - Create a new method for accessing our HTML API. So that in future, we can deprecate the get and post methods. * Added Deprecation Warning * Minor change Fixed lint issue due to incorrect spacing * Use | None union types in client signatures Update ScrapingBeeClient method signatures in scrapingbee/client.py to use PEP 604 union types (e.g. `dict | None` and `int | None`) instead of bare `dict = None` / `int = None`. This clarifies optional parameter typing for modern type checkers and requires Python 3.10+; changes touch request, get, post, html_api and several API helper methods (Google, Amazon, Walmart, YouTube, ChatGPT, usage, etc.). * Drop support for Python versions prior to 3.10 Align package metadata and CI with the 3.10+ requirement needed for PEP 604 union typing. * Align SDK with current API documentation Add the latest documented endpoints, remove obsolete YouTube APIs, and update supported Python tooling and documentation so the SDK matches the current public API surface. * Use httpbingo.org for live HTML manual tests Switch echo endpoints away from flaky httpbin.org so manual verification of the HTML API is more reliable without masking response failures.
1 parent 8bdf28e commit 49d76b3

11 files changed

Lines changed: 2076 additions & 232 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020
strategy:
2121
matrix:
22-
python-version: ['3.8', '3.9', '3.10', '3.11']
22+
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
2323
steps:
2424
- uses: actions/checkout@v6
2525
- name: Set up Python

CHANGELOG.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,46 @@
11
# Changelog
22

3+
## [2.1.0](https://github.com/ScrapingBee/scrapingbee-python/compare/v2.0.2...v2.1.0) (2026-07-20)
4+
5+
### Features
6+
7+
- Added `html_api()` method for HTML API with unified GET/POST support
8+
- Added `google_search()` method for Google Search API
9+
- Added `fast_search()` method for Fast Search API
10+
- Added `amazon_search()` method for Amazon Search API
11+
- Added `amazon_product()` method for Amazon Product API
12+
- Added `amazon_pricing()` method for Amazon Pricing API
13+
- Added `walmart_search()` method for Walmart Search API
14+
- Added `walmart_product()` method for Walmart Product API
15+
- Added `youtube_search()` method for YouTube Search API
16+
- Added `youtube_metadata()` method for YouTube Metadata API
17+
- Added `youtube_subtitles()` method for YouTube Subtitles API
18+
- Added `chatgpt()` method for ChatGPT API
19+
- Added `gemini()` method for Gemini API
20+
- Added `usage()` method for Usage API
21+
- Refactored internal `request()` method to be API-agnostic
22+
23+
### Deprecated
24+
25+
- `get()` and `post()` are deprecated in favor of `html_api()` and will be removed in version 3.0.0.
26+
27+
## [2.0.2](https://github.com/ScrapingBee/scrapingbee-python/compare/v2.0.1...v2.0.2) (2025-10-02)
28+
29+
### Features
30+
31+
- Added support for `ai_extract_rules` parameter in `SpbParams`.
32+
- Added Python 3.11 support.
33+
34+
### Changes
35+
36+
- Dropped Python 3.7 support.
37+
38+
## [2.0.1](https://github.com/ScrapingBee/scrapingbee-python/compare/v2.0.0...v2.0.1) (2023-10-17)
39+
40+
### Bugfix
41+
42+
- Fix typos in `README.md` (`block_ressources` -> `block_resources`, `json_scenario` -> `js_scenario`).
43+
344
## [2.0.0](https://github.com/ScrapingBee/scrapingbee-python/compare/v1.2.0...v2.0.0) (2023-10-03)
445

546
### Improvement

0 commit comments

Comments
 (0)