scrapeunblocker 0.18.0 → 0.18.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2328348f7f4055116a93870f8dd766b42c8506c958765ecb491d730dc5eb6e03
4
- data.tar.gz: 2823821a3fad35a0793fe4c76b4e1b7859d85b396c32940462a326ee48d3dc56
3
+ metadata.gz: c79b962e59206a9d9ec4a01135927307c8e56f24d96b7b102b45750192c8246f
4
+ data.tar.gz: c83c12468bba24e284c1276ac235641eb0e666b6d54a75ad6dba7db85e938775
5
5
  SHA512:
6
- metadata.gz: 9f58462d9225db65abcb786a0963eb7aa212d5decb2358994dea5f81cf9df583d2e0f1b81137ef0d6318bbdfc629a6d2ddfc119d9809b829ad79a6848200ed8d
7
- data.tar.gz: 43c42381ec0ec98338acd98e09279ebe7d84e8ef4df085b06524ac929199fdf2b5f9eada943ed3e29886052d333ac57f02e8ac561199843450ba9c9a46d279ba
6
+ metadata.gz: 831c58953287ebe22c4b51194ec83e4db28c8d467c63bd9b5da1c50c779acc802e58599aa4a1ad013bdeaef9287472b2633888560749190418dd6faca41575e9
7
+ data.tar.gz: d22ed5ddf91dee7a90946c42dbfd59bf34fa4cfbc1ce632456f26b4d63118340f2a314d17f78158c29a2d9e2992dbc0defa9761ada4e6e344abd90df1d11a0ef
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.18.1 (2026-11-02)
4
+
5
+ - `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.
6
+
7
+ No breaking changes.
8
+
3
9
  ## 0.18.0 (2026-11-02)
4
10
 
5
11
  - 6 new plugin methods on `Client` for SofaScore (live scores, fixtures, results and stats for 26 sports): `sofascore_events` (a sport's matches on a day in your time zone, or `live: true` for those in progress; `sport` defaults to football), `sofascore_match(match)` (one match with the `include:` sections: statistics, lineups, incidents, head-to-head, odds, momentum, shot map and more), `sofascore_search(query)`, `sofascore_team(team)`, `sofascore_player(player)` and `sofascore_tournament(tournament)`. Teams, players and competitions take an id, a sofascore.com link or a name. `include:` takes a comma-separated string or an array.
data/README.md CHANGED
@@ -177,6 +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(" ") }
181
+ # The first page's other blocks (empty when Google shows none):
182
+ p serp["peopleAlsoAsk"], serp["relatedSearches"], serp["knowledgeGraph"], serp["topStories"]
180
183
  ```
181
184
 
182
185
  ## Google Local (Maps)
@@ -128,7 +128,13 @@ module ScrapeUnblocker
128
128
  PageResult.from_hash(JSON.parse(body))
129
129
  end
130
130
 
131
- # Run a Google search and return the parsed SERP as a Hash.
131
+ # Run a Google search and return the parsed SERP as a Hash: "organic"
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).
132
138
  # +captcha_pause+ is kept for compatibility; the API ignores it.
133
139
  def serp(keyword, proxy_country: nil, pages_to_check: 1, wait_after_load: 0, captcha_pause: 0)
134
140
  post_json("/serpApi",
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ScrapeUnblocker
4
- VERSION = "0.18.0"
4
+ VERSION = "0.18.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrapeunblocker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.0
4
+ version: 0.18.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ScrapeUnblocker