scrapeunblocker 0.18.5 → 0.19.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0d995759fef0095220f74549789f92fa30d21dbc249bfc4b32bb806330e980af
4
- data.tar.gz: c4f5d8d760547d8c8b1e389cc3130b1130e50882e2d6b46cb8db5345d9d6f7f8
3
+ metadata.gz: 9ce0dab6107d17a3f97bf4dd1b987c7c959abae65f366b05bd517622c835c716
4
+ data.tar.gz: aa000b55837243f345af4485ec03ca9de0520f52ba525aee19e3db49c18b0320
5
5
  SHA512:
6
- metadata.gz: 134166fbca30c41e5bcef5cef32191c4ad9c32ec17509616ff17ec4054352a49fa4a43d6437ebf8eb34654fec949a4d96b0321704dd3966e1e0680d50172152e
7
- data.tar.gz: 4216f99107c1db6166493edabd06f711942fd685637f02ff92493fa6da32fb30c35c45eaa27142bc068be7bbe4c357926dbfb99bdd1b537351583acc8a7415d7
6
+ metadata.gz: 33d9fd7019a3fb09db76d43b8616159c3f25cbc499c4f5bbab86520cf9640373db592fc81855c08de45e0a9fe78ccf50932fc45bcd1b1f5e3cce409af3c02981
7
+ data.tar.gz: 6995b58f61f1ed2fd87f0b905d1b3ef3de2101d52d7e432d158c471d79ed187da51c294e0aeb95163e23891fb8fa78b228ad69a1ae408816de28be59c1ba42d5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.19.0 (2026-11-11)
4
+
5
+ - `serp` takes the new `full_urls:` keyword. Google gives out a results page's real links a few at a time, the last ones up to about 40 seconds after the search; by default the call returns sooner and a result whose link has not come yet has the site's home page as its `url` (or a Google redirect link). `full_urls: true` waits until every result has its real URL, so the call takes up to about 40 seconds longer. Billed the same. The parameter is only sent when true, so other requests are unchanged.
6
+
7
+ No breaking changes.
8
+
9
+ ## 0.18.6 (2026-11-09)
10
+
11
+ - Plugin method docs list the new response fields: Walmart product and search, Amazon product, Trustpilot reviews, Zillow property detail and Google Shopping. Taobao item methods document the catalogue key (`itemKey`). Requests are unchanged.
12
+
13
+ No breaking changes.
14
+
3
15
  ## 0.18.5 (2026-11-05)
4
16
 
5
17
  - `shopee_product` documents the new `originalPriceStatus` field, which says what a null `originalPrice` means: `found` (it is set), `no_discount` (no discount, so no list price), `pix` (a Pix price, whose list price Shopee does not show), `not_shown` (only the product page gives a discount; Shopee's listings show none) or `lookup_failed` (a retry can find it). No code change: the method returns the API's JSON as it is.
data/README.md CHANGED
@@ -182,6 +182,17 @@ serp["organic"].each { |r| puts [r["position"], r["title"], r["url"], r["date"],
182
182
  p serp["peopleAlsoAsk"], serp["relatedSearchLinks"], serp["knowledgeGraph"], serp["topStories"]
183
183
  ```
184
184
 
185
+ Google gives out a results page's real result links a few at a time, the last
186
+ ones up to about 40 seconds after the search. By default `serp` returns
187
+ sooner, and a result whose link has not come yet has the site's home page as
188
+ its `url` (or a Google redirect link when Google shows no site). Pass
189
+ `full_urls: true` to wait until (nearly) every result has its real URL: the
190
+ call then takes up to about 40 seconds longer and is billed the same.
191
+
192
+ ```ruby
193
+ serp = su.serp("best hiking boots", full_urls: true)
194
+ ```
195
+
185
196
  ## Google Local (Maps)
186
197
 
187
198
  ```ruby
@@ -137,12 +137,22 @@ module ScrapeUnblocker
137
137
  # localResults, shoppingResults and spellingCorrection (each empty or nil
138
138
  # when Google shows none).
139
139
  # +captcha_pause+ is kept for compatibility; the API ignores it.
140
- def serp(keyword, proxy_country: nil, pages_to_check: 1, wait_after_load: 0, captcha_pause: 0)
140
+ #
141
+ # +full_urls+ waits until Google gives out every result's real URL.
142
+ # Google releases a results page's links a few at a time, the last ones
143
+ # up to about 40 seconds after the search. Without it the call returns
144
+ # sooner, and a result whose link has not come yet has the site's home
145
+ # page as its "url" (or a Google redirect link when Google shows no
146
+ # site). With it, the call takes up to about 40 seconds longer. Billed
147
+ # the same.
148
+ def serp(keyword, proxy_country: nil, pages_to_check: 1, wait_after_load: 0, captcha_pause: 0,
149
+ full_urls: false)
141
150
  post_json("/serpApi",
142
151
  keyword: keyword, proxy_country: proxy_country,
143
152
  pages_to_check: pages_to_check,
144
153
  wait_after_load: (wait_after_load.zero? ? nil : wait_after_load),
145
- captcha_pause: (captcha_pause.zero? ? nil : captcha_pause))
154
+ captcha_pause: (captcha_pause.zero? ? nil : captcha_pause),
155
+ full_urls: (full_urls ? true : nil))
146
156
  end
147
157
 
148
158
  # Search Google Local (Maps) and return the businesses as a Hash.
@@ -204,9 +204,11 @@ module ScrapeUnblocker
204
204
  # Scrape Walmart product search.
205
205
  #
206
206
  # Searches Walmart for `query` and returns the products as JSON: `name`, `price` and
207
- # `wasPrice`, `rating`, `reviewCount`, `brand`, `seller`, `availability`, `image` and a
208
- # product `url`. Sort with `sort`, filter with `min_price`/`max_price`, and collect up to
209
- # `max_results` across pages.
207
+ # `wasPrice`, `rating`, `reviewCount`, `brand`, `seller`, `availability`, `image`, a product
208
+ # `url`, `sponsored`, `unitPrice`, `priceRange`, `promotions`, `fulfillment`,
209
+ # `deliveryAvailable` and `variants`. The response also carries the search's `totalResults`,
210
+ # `pages`, `filters` and `sponsoredProducts`. Sort with `sort`, filter with
211
+ # `min_price`/`max_price`, and collect up to `max_results` across pages.
210
212
  #
211
213
  # @param query [String] What to search, e.g. 'laptop' or 'coffee maker'.
212
214
  # @param sort [String] Ordering: best_match, price_low, price_high, best_seller,
@@ -238,14 +240,18 @@ module ScrapeUnblocker
238
240
  # `inStock`, `condition`, `seller` (name, Walmart or marketplace seller, its rating and
239
241
  # review count), `additionalSellerCount`, `fulfillment` (shipping, pickup and delivery:
240
242
  # available or not, date, fee, store or place), `returnPolicy`, `rating`, `reviewCount`,
241
- # `reviewSummary` (star histogram, recommend percentage, aspect scores), the first
242
- # `reviews`, `categories`, `shortDescription`, `description`, `highlights`,
243
- # `specifications`, `warranty`, `variantOptions` and every `variants` entry (its own item
244
- # id, attributes, price, stock), `images` and `videos`. Fulfillment dates and the store are
245
- # what Walmart quotes for the US location it assigns to the request (`location` names it),
246
- # not a ZIP code or store you choose. Other sellers' offers are not on the product page:
247
- # only their count (`additionalSellerCount`) is returned. Companion to
248
- # `/marketplace/walmart-search`.
243
+ # `totalReviewCount`, `reviewSummary` (star histogram, recommend percentage, aspect scores),
244
+ # `reviewSummaryText`, `reviewBullets`, `reviewTopics`, `topPositiveReview`,
245
+ # `topNegativeReview`, the first `reviews`, `offersCount`, `otherOffersFromPrice`,
246
+ # `otherSellers`, `promotions`, `deliveryAvailable`, `pickupAvailable`, `categories`,
247
+ # `relatedPages`, `colors`, `shortDescription`, `description`, `pageSummary`, `highlights`,
248
+ # `specifications`, `directions`, `ingredients`, `activeIngredients`, `nutritionFacts`,
249
+ # `warranty`, `variantOptions` and every `variants` entry (its own item id, attributes,
250
+ # price, stock), `images`, `videos`, `infographics` and `view360Images`. Fulfillment dates
251
+ # and the store are what Walmart quotes for the US location it assigns to the request
252
+ # (`location` names it), not a ZIP code or store you choose. The product page holds only
253
+ # some of the other sellers' offers (`otherSellers`); `offersCount` is how many there are.
254
+ # Companion to `/marketplace/walmart-search`.
249
255
  #
250
256
  # @param item_id [String] Walmart item id - the number at the end of a product link, e.g.
251
257
  # '18638703162' for walmart.com/ip/.../18638703162.
@@ -1081,18 +1087,20 @@ module ScrapeUnblocker
1081
1087
  # Scrape Taobao / Tmall keyword or category listings.
1082
1088
  #
1083
1089
  # Returns the products Taobao lists for a keyword `q` (or a `category`) as JSON: `products`
1084
- # (`position`, `itemId`, `title`, `url`, `image`, `price` in yuan with `currency` CNY,
1085
- # `priceLabel` (Taobao's price tag, e.g. 优惠价), `localPrices` (the same price in the
1086
- # storefront's currency, HKD and TWD), `shopId`, `shopName`, `descriptionMatchScore`,
1087
- # `freeShipping`, `categoryId`, `rootCategoryId`, `sellingPoints`, `reviewHighlights`),
1088
- # `totalResults` (how many listings Taobao reports), and `filterOptions` (brand and property
1089
- # facets; pass an option's `filter` value back as `filter`). Sort by relevance, sales or
1090
- # price and filter by a yuan price range (products whose listed price falls outside it are
1091
- # left out and counted in `droppedOutsidePriceRange`). Taobao shows signed-out visitors only
1092
- # the first 20 products of a list, so one call returns up to 20 (narrow with price ranges
1093
- # and filters to reach more). When Taobao has no list for the keyword, the call answers with
1094
- # the list of the closest keyword Taobao itself suggests and says so: `keywordSubstituted`
1095
- # true and `matchedKeyword`. Text comes in Chinese as sellers write it. Companion to
1090
+ # (`position`, `itemId`, `itemKey` (the item's catalogue key: pass it to
1091
+ # `/marketplace/taobao-product` as `item_id`), `title`, `url`, `catalogueUrl` (the item's
1092
+ # public catalogue page), `image`, `price` in yuan with `currency` CNY, `priceLabel`
1093
+ # (Taobao's price tag, e.g. 优惠价), `localPrices` (the same price in the storefront's
1094
+ # currency, HKD and TWD), `shopId`, `shopName`, `descriptionMatchScore`, `freeShipping`,
1095
+ # `categoryId`, `rootCategoryId`, `sellingPoints`, `reviewHighlights`), `totalResults` (how
1096
+ # many listings Taobao reports), and `filterOptions` (brand and property facets; pass an
1097
+ # option's `filter` value back as `filter`). Sort by relevance, sales or price and filter by
1098
+ # a yuan price range (products whose listed price falls outside it are left out and counted
1099
+ # in `droppedOutsidePriceRange`). Taobao shows signed-out visitors only the first 20
1100
+ # products of a list, so one call returns up to 20 (narrow with price ranges and filters to
1101
+ # reach more). When Taobao has no list for the keyword, the call answers with the list of
1102
+ # the closest keyword Taobao itself suggests and says so: `keywordSubstituted` true and
1103
+ # `matchedKeyword`. Text comes in Chinese as sellers write it. Companion to
1096
1104
  # `/marketplace/taobao-product`. One unit per call.
1097
1105
  #
1098
1106
  # @param q [String] Keyword, in Chinese or English, e.g. '手机壳', '连衣裙', 'phone case' (Chinese
@@ -1121,25 +1129,32 @@ module ScrapeUnblocker
1121
1129
 
1122
1130
  # Scrape one Taobao / Tmall item.
1123
1131
  #
1124
- # Returns one Taobao or Tmall item (by `item_id` or `url`) as JSON: `itemId`, `url`,
1125
- # `platform` (taobao / tmall), `title` (`titleTruncated` when Taobao shortens it, as it does
1126
- # for Tmall items), `price`, `originalPrice` and `priceMax` (for a price range) in yuan with
1127
- # `currency` CNY, `image`, `location` (ships from), `categoryId`, `rootCategoryId`,
1128
- # `categoryPath`, `freeShipping`, `paymentMethods`, `sellableLanguages`, `rating` (positive
1129
- # / neutral / negative split and counts; Taobao items only, Tmall does not publish it),
1130
- # `latestReview` (`rating`, `content`, `date`, `variant`, `hasMedia`, `followUps`; no
1131
- # reviewer identity, so no review photo or video URLs) and `shop` (`shopId`, `name`, `url`,
1132
- # `logo`, `sellerType` B = Tmall / C = Taobao, `creditLevel`, `openedAt`, `itemCount`,
1133
- # `scores` for description, service and delivery). This is what Taobao shows signed-out
1134
- # visitors: variants (SKUs), stock and monthly sales need a Taobao login and are not
1135
- # included. Companion to `/marketplace/taobao-search`. One unit per call.
1136
- #
1137
- # @param item_id [String] Numeric Taobao or Tmall item id, e.g. '765833709683' (the `id` in
1138
- # item.taobao.com/item.htm?id=...).
1139
- # @param url [String] Taobao or Tmall item link, e.g.
1140
- # 'https://item.taobao.com/item.htm?id=765833709683' or
1141
- # 'https://detail.tmall.com/item.htm?id=1081364414020' (world.taobao.com, mobile and
1142
- # overseas item links work too). Either item_id or url is required.
1132
+ # Returns one Taobao or Tmall item (by `item_id` or `url`) as JSON: `itemId`, `itemKey` (the
1133
+ # item's catalogue key), `url`, `catalogueUrl`, `platform` (taobao / tmall), `title`
1134
+ # (`titleTruncated` when Taobao shortens it, as it does for Tmall items), `price`,
1135
+ # `originalPrice` and `priceMax` (for a price range) in yuan with `currency` CNY, `image`,
1136
+ # `location` (ships from), `categoryId`, `rootCategoryId`, `categoryPath`, `freeShipping`,
1137
+ # `paymentMethods`, `sellableLanguages`, `rating` (positive / neutral / negative split and
1138
+ # counts; Taobao items only, Tmall does not publish it), `latestReview` (`rating`,
1139
+ # `content`, `date`, `variant`, `hasMedia`, `followUps`; no reviewer identity, so no review
1140
+ # photo or video URLs) and `shop` (`shopId`, `name`, `url`, `logo`, `sellerType` B = Tmall /
1141
+ # C = Taobao, `creditLevel`, `openedAt`, `itemCount`, `scores` for description, service and
1142
+ # delivery). This is what Taobao shows signed-out visitors: variants (SKUs), stock and
1143
+ # monthly sales need a Taobao login and are not included. Taobao's public catalogue opens an
1144
+ # item by its catalogue key (`itemKey` in `/marketplace/taobao-search` results, or the key
1145
+ # in a www.taobao.com/list/item/<key>.htm or world.taobao.com/item/<key>.htm link); a
1146
+ # numeric id is tried as given and answers 404 when the catalogue does not open it.
1147
+ # Companion to `/marketplace/taobao-search`. One unit per call.
1148
+ #
1149
+ # @param item_id [String] The item's catalogue key, as `/marketplace/taobao-search` returns
1150
+ # it in `itemKey`, e.g. 'M3hoaXBUL3N4L2VnVUJncG9JWFphZz09'. A numeric Taobao or Tmall item
1151
+ # id (the `id` in item.taobao.com/item.htm?id=...) is tried as given; Taobao's public
1152
+ # catalogue opens items by key, so a numeric id may answer 404.
1153
+ # @param url [String] The item's catalogue link, e.g.
1154
+ # 'https://www.taobao.com/list/item/M3hoaXBUL3N4L2VnVUJncG9JWFphZz09.htm' or
1155
+ # 'https://world.taobao.com/item/M3hoaXBUL3N4L2VnVUJncG9JWFphZz09.htm' (the links Taobao's
1156
+ # own lists and search engines give). An item.taobao.com or detail.tmall.com link is taken
1157
+ # by its numeric id, as `item_id` is. Either item_id or url is required.
1143
1158
  # Calls POST /marketplace/taobao-product.
1144
1159
  def taobao_product(item_id = nil, url: nil)
1145
1160
  post_json("/marketplace/taobao-product", {
@@ -3479,12 +3494,12 @@ module ScrapeUnblocker
3479
3494
  #
3480
3495
  # Runs the Google Shopping vertical (`udm=28`) for `q` and returns the product cards as
3481
3496
  # JSON: `title`, `price`, `currency`, `currencyCode`, `originalPrice`, `discount`,
3482
- # `merchant`, `rating`, `reviewCount` and Google's own ids for the product (`productId`,
3483
- # `catalogId`, `offerId` - stable across searches, for tracking one product). Set
3484
- # `proxy_country`/`gl` to target a market (prices/merchants are region-specific) and
3485
- # `min_price`/`max_price` to filter. One render returns the first page of products (v1).
3486
- # Note: Google Shopping exposes no per-product URL, so `url` is omitted and `image` is best-
3487
- # effort.
3497
+ # `merchant`, `delivery`, `rating`, `reviewCount`, `image` and Google's own ids for the
3498
+ # product (`productId`, `catalogId`, `offerId` - stable across searches, for tracking one
3499
+ # product). Set `proxy_country`/`gl` to target a market (prices/merchants are region-
3500
+ # specific) and `min_price`/`max_price` to filter. One render returns the first page of
3501
+ # products (v1). Note: Google Shopping exposes no per-product URL, so `url` is omitted.
3502
+ # `image` is the product's thumbnail URL.
3488
3503
  #
3489
3504
  # @param q [String] Product search term, e.g. 'wireless headphones'.
3490
3505
  # @param gl [String] Market of search, ISO-2, e.g. 'us', 'de'. Sets prices/merchants. API
@@ -4203,7 +4218,8 @@ module ScrapeUnblocker
4203
4218
  # `price`, `zestimate`, `rentZestimate`, `beds`, `baths`, `area`, `lotSize`, `yearBuilt`,
4204
4219
  # `homeType`, `status`, `description`, `priceHistory`, `taxHistory`, `schools`, `facts`,
4205
4220
  # `parking`, listing `brokerName`/`listingAgent`, `mlsid`, `monthlyHoaFee`, `pricePerSqft`,
4206
- # `daysOnZillow`, `taxAssessedValue`, coordinates, the `photos` gallery and
4221
+ # `daysOnZillow`, `datePosted`, `pageViewCount` and `favoriteCount` (how many people viewed
4222
+ # and saved the listing), `taxAssessedValue`, coordinates, the `photos` gallery and
4207
4223
  # `virtualTourUrl`. Every field is always present and is `null` when Zillow does not show it
4208
4224
  # for that listing (for-sale and sold pages carry fewer sections than rentals). Companion to
4209
4225
  # the Zillow search plugin (`/realestate/zillow`).
@@ -5085,10 +5101,12 @@ module ScrapeUnblocker
5085
5101
  # Returns a company's Trustpilot profile and reviews as JSON. `company` is the reviewed
5086
5102
  # domain (e.g. `www.nike.com`). The response has a `company` summary (`trustScore`,
5087
5103
  # `totalReviews`, `ratingDistribution` 1-5, `categories`, `contact`) and a `reviews` array -
5088
- # each with `rating`, `title`, `text`, `verified`, `author` (name, country, review count),
5089
- # `reply` (the company's response) and dates. Page with `page`/`pages` (20 reviews per
5090
- # page), and filter with `stars`, `sort` (recency/relevancy), `language`, `date`, `search`,
5091
- # `verified` or `replies`.
5104
+ # each with `url`, `rating`, `title`, `text`, `verified`, `verificationLevel`,
5105
+ # `verificationSource`, `source`, `pending`, `merged`, `author` (name, country, review
5106
+ # count, `id`, `image`, `profileUrl`, `reviewsOfThisCompany`), `reply` (the company's
5107
+ # response, with dates) and `date` / `experiencedDate` / `updatedDate`. Page with
5108
+ # `page`/`pages` (20 reviews per page), and filter with `stars`, `sort` (recency/relevancy),
5109
+ # `language`, `date`, `search`, `verified` or `replies`.
5092
5110
  #
5093
5111
  # @param company [String] The reviewed company's domain, e.g. 'www.nike.com' or 'nike.com'.
5094
5112
  # A full site URL or a pasted Trustpilot review URL is also accepted.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ScrapeUnblocker
4
- VERSION = "0.18.5"
4
+ VERSION = "0.19.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrapeunblocker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.5
4
+ version: 0.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ScrapeUnblocker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-11-05 00:00:00.000000000 Z
11
+ date: 2026-11-11 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: JS-rendered pages that bypass Cloudflare, DataDome, PerimeterX and Akamai,
14
14
  plus Google SERP and 100+ ready-made site plugins (Amazon, Walmart, Zillow, Google