scrapeunblocker 0.18.1 → 0.18.2

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: c79b962e59206a9d9ec4a01135927307c8e56f24d96b7b102b45750192c8246f
4
- data.tar.gz: c83c12468bba24e284c1276ac235641eb0e666b6d54a75ad6dba7db85e938775
3
+ metadata.gz: 46c58ab46030d1a99414f77676739a286e8f15b50ad34471796bde56890f398c
4
+ data.tar.gz: 9211f4d6f52e9a30789335ac49dd426460ce7188b157af1ffea1ab6bd59bcfa1
5
5
  SHA512:
6
- metadata.gz: 831c58953287ebe22c4b51194ec83e4db28c8d467c63bd9b5da1c50c779acc802e58599aa4a1ad013bdeaef9287472b2633888560749190418dd6faca41575e9
7
- data.tar.gz: d22ed5ddf91dee7a90946c42dbfd59bf34fa4cfbc1ce632456f26b4d63118340f2a314d17f78158c29a2d9e2992dbc0defa9761ada4e6e344abd90df1d11a0ef
6
+ metadata.gz: 1c35d05ead20976ae058d07e5cb59a8ef1a4aff4f886aa8ae865ceec5aea15f995b8a39e250a75f20be6a3d921c48d766eaa8205b9a21c33071900e6cbd55131
7
+ data.tar.gz: 36d91d92934186d05ff01cab03831370e7dedb03e2780eabfa8b41270588e322be204d0b14e987dcb6dd12f037d839245e3f04b855e686c6a215e7c028b9bf8b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.18.2 (2026-11-03)
4
+
5
+ - `serp` documents the new Google SERP fields: organic results and ads with `favicon` and `sitelinks`, organic results with `rating`, `richSnippet` (the facts line under the snippet) and `thumbnail`, and `relatedSearchLinks` (each related search with its Google search URL).
6
+ - `bing_search` documents the richer Bing results: organic `source`, `favicon`, `date`, `sitelinks`, `rating`, `richSnippet`, `thumbnail`; ads with `advertiser`, `favicon`, `sitelinks` and the advertiser's real landing URL; `relatedSearchLinks`, `aiOverview` (Bing's AI summary) and `spellingCorrection`. No code change: both methods return the API's JSON as it is.
7
+
8
+ No breaking changes.
9
+
3
10
  ## 0.18.1 (2026-11-02)
4
11
 
5
12
  - `serp` documents the richer Google SERP the API now returns: every organic result (also those without a snippet) with its real URL, `displayedUrl`, `domain`, `source` (site name) and `date`; ads with `displayedUrl`, `domain` and `advertiser`; and the first page's other blocks - `peopleAlsoAsk`, `relatedSearches`, `knowledgeGraph`, `topStories`, `videos`, `localResults`, `shoppingResults` and `spellingCorrection`. No code change: the method returns the API's JSON as it is.
data/README.md CHANGED
@@ -177,9 +177,9 @@ data = su.plugin("/marketplace/target-search", query: "tv", max_results: 24)
177
177
 
178
178
  ```ruby
179
179
  serp = su.serp("web scraping api", pages_to_check: 2, proxy_country: "US")
180
- serp["organic"].each { |r| puts [r["position"], r["title"], r["url"], r["date"]].join(" ") }
180
+ serp["organic"].each { |r| puts [r["position"], r["title"], r["url"], r["date"], r["favicon"]].join(" ") }
181
181
  # The first page's other blocks (empty when Google shows none):
182
- p serp["peopleAlsoAsk"], serp["relatedSearches"], serp["knowledgeGraph"], serp["topStories"]
182
+ p serp["peopleAlsoAsk"], serp["relatedSearchLinks"], serp["knowledgeGraph"], serp["topStories"]
183
183
  ```
184
184
 
185
185
  ## Google Local (Maps)
@@ -130,11 +130,12 @@ module ScrapeUnblocker
130
130
 
131
131
  # Run a Google search and return the parsed SERP as a Hash: "organic"
132
132
  # results and "topAds" / "bottomAds" (title, real url, description,
133
- # position, displayedUrl, domain; organic adds source and date, ads
134
- # advertiser), "aiOverview", "totalResults", and the first page's other
135
- # blocks: peopleAlsoAsk, relatedSearches, knowledgeGraph, topStories,
136
- # videos, localResults, shoppingResults and spellingCorrection (each empty
137
- # or nil when Google shows none).
133
+ # position, displayedUrl, domain, favicon, sitelinks; organic adds source,
134
+ # date, rating, richSnippet and thumbnail, ads advertiser), "aiOverview",
135
+ # "totalResults", and the first page's other blocks: peopleAlsoAsk,
136
+ # relatedSearches, relatedSearchLinks, knowledgeGraph, topStories, videos,
137
+ # localResults, shoppingResults and spellingCorrection (each empty or nil
138
+ # when Google shows none).
138
139
  # +captcha_pause+ is kept for compatibility; the API ignores it.
139
140
  def serp(keyword, proxy_country: nil, pages_to_check: 1, wait_after_load: 0, captcha_pause: 0)
140
141
  post_json("/serpApi",
@@ -3976,10 +3976,14 @@ module ScrapeUnblocker
3976
3976
  # Search Bing.
3977
3977
  #
3978
3978
  # Searches Bing for `keyword` in a real browser and returns the results page as JSON:
3979
- # `topAds`, `bottomAds`, `organic` (each with `position`, `title`, `url`, `displayedUrl`,
3980
- # `domain`, `description`), `relatedSearches` and `totalResults`. Same parameters and
3981
- # response shape as `/serpApi`. `proxy_country` sets both the market and the location the
3982
- # search is sent from, which decides the ads.
3979
+ # `topAds`, `bottomAds` (each with `advertiser`, `favicon` and `sitelinks`), `organic` (each
3980
+ # with `position`, `title`, `url`, `displayedUrl`, `domain`, `description`, `source`,
3981
+ # `favicon`, `date`, `sitelinks`, `rating`, `richSnippet`, `thumbnail`), `relatedSearches`,
3982
+ # `relatedSearchLinks`, `aiOverview` (Bing's AI summary), `spellingCorrection` and
3983
+ # `totalResults`. Same parameters as `/serpApi`. When page 1 is crowded by ads and holds few
3984
+ # organic results, a one-page call also takes page 2's organic results at no extra charge.
3985
+ # `proxy_country` sets both the market and the location the search is sent from, which
3986
+ # decides the ads.
3983
3987
  #
3984
3988
  # @param keyword [String] Search terms.
3985
3989
  # @param pages_to_check [Integer] How many result pages to collect (1-10, ~10 results each).
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ScrapeUnblocker
4
- VERSION = "0.18.1"
4
+ VERSION = "0.18.2"
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.1
4
+ version: 0.18.2
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-02 00:00:00.000000000 Z
11
+ date: 2026-11-03 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