scrapeunblocker 0.18.6 → 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: b5f215574b158552a6c50f4e9095b14c1da9184d4231784fe509bc3216fcdf24
4
- data.tar.gz: 59de9ec337fdd6e4335aa9181dd12b40b3d0c7019ec8eb4ab81c748b432bbc52
3
+ metadata.gz: 9ce0dab6107d17a3f97bf4dd1b987c7c959abae65f366b05bd517622c835c716
4
+ data.tar.gz: aa000b55837243f345af4485ec03ca9de0520f52ba525aee19e3db49c18b0320
5
5
  SHA512:
6
- metadata.gz: b9f8529ae798dd9123110bd6a17b8ec3ce9b5223ec9935e338870d531d27f83aeff9fa8de51967d15281720e87000a963a3ac4c0094c1b54c0c93b660e772262
7
- data.tar.gz: ffc2a8a9a60e24bb08f16998740818a1518047622de48b6f976e6ea91ea971962b0b71eebdc15e65cdc9119e62cba96b1e55e146c382e5649373624d76bbed42
6
+ metadata.gz: 33d9fd7019a3fb09db76d43b8616159c3f25cbc499c4f5bbab86520cf9640373db592fc81855c08de45e0a9fe78ccf50932fc45bcd1b1f5e3cce409af3c02981
7
+ data.tar.gz: 6995b58f61f1ed2fd87f0b905d1b3ef3de2101d52d7e432d158c471d79ed187da51c294e0aeb95163e23891fb8fa78b228ad69a1ae408816de28be59c1ba42d5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
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
+
3
9
  ## 0.18.6 (2026-11-09)
4
10
 
5
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.
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.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ScrapeUnblocker
4
- VERSION = "0.18.6"
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.6
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-09 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