scrapeunblocker 0.15.0 → 0.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/scrapeunblocker/plugins.rb +29 -18
- data/lib/scrapeunblocker/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3f62e1ad297dc0829c5aad20c1c09208595bb459b733b87d862c585fe64e12e5
|
|
4
|
+
data.tar.gz: 9ce26e1db98023c5373d90229f0f9545fc11f71f28ba143e82710305aab6a811
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 150e385abf9ae36cde1653f4c411ab43d3735f6267fb6c8aab24d43caf37aa3da4dd8c7f6833dd6b207f45b374d01e6112f4a27e4a7007b4bcba2c812ce83b3e
|
|
7
|
+
data.tar.gz: 2a7c1c9b01e7821b80dfd590e650a2766b56ecccaa28ae16c1b219f6ce2022d7b4d33c2108e33eed17319f794e9c052dbe6977a00964a201b15853fdadeefbf2
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.15.1 (2026-10-29)
|
|
4
|
+
|
|
5
|
+
- `shopee_product` and `shopee_search` docs: describe `availability` and `inStock`, sold-out variations (`models[].available`, `tierIndex`), `categories` as the breadcrumb path plus `browseCategories`, `isPixPrice` (Brazilian Pix prices) and the JSON `{"status": "not_found", ...}` answer for a product that does not exist. Signatures are unchanged.
|
|
6
|
+
|
|
3
7
|
## 0.15.0 (2026-10-29)
|
|
4
8
|
|
|
5
9
|
- 23 new plugin methods on `Client`:
|
|
@@ -793,15 +793,18 @@ module ScrapeUnblocker
|
|
|
793
793
|
# Searches a Shopee market (Singapore, Indonesia, Malaysia, Thailand, Vietnam, Philippines,
|
|
794
794
|
# Taiwan or Brazil - `country`) for `q` and returns one page of results: up to 40
|
|
795
795
|
# `products`, each with `position`, `itemId`, `shopId`, `name`, `url`, `image`, `price`,
|
|
796
|
-
# `originalPrice` (when Shopee shows the crossed-out price), `discountPercent`,
|
|
797
|
-
# `rating` (average stars), `location` (where the seller ships
|
|
798
|
-
# badges). `sort` orders the results, `min_price` /
|
|
799
|
-
# one shop's products (or lists the shop without
|
|
800
|
-
# category link instead. Shopee shows one page per
|
|
801
|
-
# price ranges for more products. `price` is what
|
|
802
|
-
# can be a promotional or new-customer price (see
|
|
803
|
-
#
|
|
804
|
-
#
|
|
796
|
+
# `originalPrice` (when Shopee shows the crossed-out price), `discountPercent`,
|
|
797
|
+
# `isPixPrice`, `currency`, `rating` (average stars), `location` (where the seller ships
|
|
798
|
+
# from) and `labels` (promotion badges). `sort` orders the results, `min_price` /
|
|
799
|
+
# `max_price` filter them, `shop_id` keeps one shop's products (or lists the shop without
|
|
800
|
+
# `q`), and `url` takes a Shopee search or category link instead. Shopee shows one page per
|
|
801
|
+
# search, so run several sort orders or price ranges for more products. `price` is what
|
|
802
|
+
# Shopee shows a signed-out shopper, which can be a promotional or new-customer price (see
|
|
803
|
+
# `labels`). In Brazil a card often shows the Pix price (`isPixPrice: true`): `price` is
|
|
804
|
+
# then the Pix price and `discountPercent` is measured against the list price, which Shopee
|
|
805
|
+
# does not show on such a card, so `originalPrice` is null. Not available: per-variation
|
|
806
|
+
# prices, stock counts, units sold, rating counts and reviews (Shopee does not publish them
|
|
807
|
+
# on the pages these endpoints read). One unit per call.
|
|
805
808
|
#
|
|
806
809
|
# @param q [String] What to search for, e.g. 'iphone case' or 'air fryer'. Optional with
|
|
807
810
|
# `shop_id`.
|
|
@@ -841,14 +844,22 @@ module ScrapeUnblocker
|
|
|
841
844
|
# (average stars), `labels`, `images`, `shopLocation` and `shop` (`name`, `username`, `url`,
|
|
842
845
|
# `rating`, `ratingCount`, `followers`, `itemCount`, `responseRatePercent`,
|
|
843
846
|
# `isOfficialShop`, `isPreferredPlusSeller`, `location`, `joinedAt`). With `dataLevel: full`
|
|
844
|
-
# it also has `
|
|
845
|
-
#
|
|
846
|
-
#
|
|
847
|
-
#
|
|
848
|
-
#
|
|
849
|
-
#
|
|
850
|
-
#
|
|
851
|
-
#
|
|
847
|
+
# it also has `availability` (`in_stock`, `sold_out` or `unavailable` for a withdrawn
|
|
848
|
+
# listing) and `inStock`, `description`, `brand`, `condition`, `categories` (the path the
|
|
849
|
+
# product page's breadcrumb shows, with ids), `browseCategories` (the browse tree, whose ids
|
|
850
|
+
# Shopee's category links use), `videos`, `variations` (option names), `models` (`modelId`,
|
|
851
|
+
# `name`, `available` - false for a sold-out variation - and `tierIndex`, the model's option
|
|
852
|
+
# in each variation), `attributes`, `isOfficialShop`, `isPreOrder`, `estimatedShippingDays`
|
|
853
|
+
# and `createdAt`; `dataLevel: meta` means Shopee showed only the product's title and main
|
|
854
|
+
# image (some markets), with price, rating and shop still included. A product Shopee says
|
|
855
|
+
# does not exist (removed, or never existed) answers 404 with JSON `{"status": "not_found",
|
|
856
|
+
# ...}`; a 502 means the call could not get an answer from Shopee and can be retried.
|
|
857
|
+
# `price` is what Shopee shows a signed-out shopper, which can be a promotional or new-
|
|
858
|
+
# customer price (see `labels`). In Brazil a card often shows the Pix price (`isPixPrice:
|
|
859
|
+
# true`): `price` is then the Pix price and `discountPercent` is measured against the list
|
|
860
|
+
# price, which Shopee does not show on such a card, so `originalPrice` is null. Not
|
|
861
|
+
# available: per-variation prices, stock counts, units sold, rating counts and reviews
|
|
862
|
+
# (Shopee does not publish them on the pages these endpoints read). One unit per call.
|
|
852
863
|
#
|
|
853
864
|
# @param url [String] A Shopee product link, e.g. https://shopee.sg/Beats-
|
|
854
865
|
# iPhone-17-Case-i.442800909.40270108836 or
|
|
@@ -4733,7 +4744,7 @@ module ScrapeUnblocker
|
|
|
4733
4744
|
# @param video [String] Video id (dQw4w9WgXcQ) or any YouTube video URL.
|
|
4734
4745
|
# @param lang [String] Preferred caption language code, e.g. 'en'. Omit for the
|
|
4735
4746
|
# default/first track. A prefix like 'en' matches 'en-US'.
|
|
4736
|
-
# @param format [String] Output shape:
|
|
4747
|
+
# @param format [String] Output shape: segments, text. 'segments' returns timestamps; 'text'
|
|
4737
4748
|
# returns only the joined plaintext. API default: segments.
|
|
4738
4749
|
# @param proxy_country [String] Proxy country the request is sent from (ISO-2, e.g. 'US',
|
|
4739
4750
|
# 'DE') for the watch page. Defaults to US.
|