scrapeunblocker 0.18.0 → 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 +4 -4
- data/CHANGELOG.md +13 -0
- data/README.md +3 -0
- data/lib/scrapeunblocker/client.rb +8 -1
- data/lib/scrapeunblocker/plugins.rb +8 -4
- data/lib/scrapeunblocker/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 46c58ab46030d1a99414f77676739a286e8f15b50ad34471796bde56890f398c
|
|
4
|
+
data.tar.gz: 9211f4d6f52e9a30789335ac49dd426460ce7188b157af1ffea1ab6bd59bcfa1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1c35d05ead20976ae058d07e5cb59a8ef1a4aff4f886aa8ae865ceec5aea15f995b8a39e250a75f20be6a3d921c48d766eaa8205b9a21c33071900e6cbd55131
|
|
7
|
+
data.tar.gz: 36d91d92934186d05ff01cab03831370e7dedb03e2780eabfa8b41270588e322be204d0b14e987dcb6dd12f037d839245e3f04b855e686c6a215e7c028b9bf8b
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
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
|
+
|
|
10
|
+
## 0.18.1 (2026-11-02)
|
|
11
|
+
|
|
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.
|
|
13
|
+
|
|
14
|
+
No breaking changes.
|
|
15
|
+
|
|
3
16
|
## 0.18.0 (2026-11-02)
|
|
4
17
|
|
|
5
18
|
- 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"], r["favicon"]].join(" ") }
|
|
181
|
+
# The first page's other blocks (empty when Google shows none):
|
|
182
|
+
p serp["peopleAlsoAsk"], serp["relatedSearchLinks"], serp["knowledgeGraph"], serp["topStories"]
|
|
180
183
|
```
|
|
181
184
|
|
|
182
185
|
## Google Local (Maps)
|
|
@@ -128,7 +128,14 @@ 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, 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).
|
|
132
139
|
# +captcha_pause+ is kept for compatibility; the API ignores it.
|
|
133
140
|
def serp(keyword, proxy_country: nil, pages_to_check: 1, wait_after_load: 0, captcha_pause: 0)
|
|
134
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
|
|
3980
|
-
# `
|
|
3981
|
-
#
|
|
3982
|
-
#
|
|
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).
|
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.
|
|
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-
|
|
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
|