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 +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +3 -0
- data/lib/scrapeunblocker/client.rb +7 -1
- data/lib/scrapeunblocker/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c79b962e59206a9d9ec4a01135927307c8e56f24d96b7b102b45750192c8246f
|
|
4
|
+
data.tar.gz: c83c12468bba24e284c1276ac235641eb0e666b6d54a75ad6dba7db85e938775
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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",
|