scrapeunblocker 0.17.1 → 0.18.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 +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +1 -0
- data/lib/scrapeunblocker/plugins.rb +207 -1
- 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: 2328348f7f4055116a93870f8dd766b42c8506c958765ecb491d730dc5eb6e03
|
|
4
|
+
data.tar.gz: 2823821a3fad35a0793fe4c76b4e1b7859d85b396c32940462a326ee48d3dc56
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9f58462d9225db65abcb786a0963eb7aa212d5decb2358994dea5f81cf9df583d2e0f1b81137ef0d6318bbdfc629a6d2ddfc119d9809b829ad79a6848200ed8d
|
|
7
|
+
data.tar.gz: 43c42381ec0ec98338acd98e09279ebe7d84e8ef4df085b06524ac929199fdf2b5f9eada943ed3e29886052d333ac57f02e8ac561199843450ba9c9a46d279ba
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.18.0 (2026-11-02)
|
|
4
|
+
|
|
5
|
+
- 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.
|
|
6
|
+
|
|
7
|
+
No breaking changes.
|
|
8
|
+
|
|
3
9
|
## 0.17.1 (2026-10-30)
|
|
4
10
|
|
|
5
11
|
- 2 new plugin methods on `Client`: `bodegaaurrera_search(query)` and `bodegaaurrera_product` (Bodega Aurrera, Walmart de Mexico's discount chain; prices in MXN). The search's first argument is optional for calls that pass `url:` instead; the product method takes `product_id:` or `url:`.
|
data/README.md
CHANGED
|
@@ -162,6 +162,7 @@ jobs = su.career_site_jobs("https://jobs.ashbyhq.com/ramp", keyword: "engineer")
|
|
|
162
162
|
| Local & Maps | `yelp_search`, `yelp_business`, `yelp_reviews`, `naver_place_search`, `naver_place_details` |
|
|
163
163
|
| Apps | `google_play_app`, `google_play_search`, `app_store_app`, `app_store_search`, `app_store_reviews` |
|
|
164
164
|
| Video & Music | `youtube_channel`, `youtube_search`, `youtube_transcript`, `spotify_search`, `spotify_artist`, `spotify_album`, `spotify_track`, `spotify_playlist` |
|
|
165
|
+
| Sports | `sofascore_events`, `sofascore_match`, `sofascore_search`, `sofascore_team`, `sofascore_player`, `sofascore_tournament` |
|
|
165
166
|
| SEO & Ads | `similarweb_overview`, `ahrefs`, `semrush_overview`, `meta_ad_library` |
|
|
166
167
|
<!-- plugin-methods:end -->
|
|
167
168
|
|
|
@@ -5789,7 +5789,7 @@ module ScrapeUnblocker
|
|
|
5789
5789
|
# @param video [String] Video id (dQw4w9WgXcQ) or any YouTube video URL.
|
|
5790
5790
|
# @param lang [String] Preferred caption language code, e.g. 'en'. Omit for the
|
|
5791
5791
|
# default/first track. A prefix like 'en' matches 'en-US'.
|
|
5792
|
-
# @param format [String] Output shape:
|
|
5792
|
+
# @param format [String] Output shape: segments, text. 'segments' returns timestamps; 'text'
|
|
5793
5793
|
# returns only the joined plaintext. API default: segments.
|
|
5794
5794
|
# @param proxy_country [String] Proxy country the request is sent from (ISO-2, e.g. 'US',
|
|
5795
5795
|
# 'DE') for the watch page. Defaults to US.
|
|
@@ -6018,6 +6018,212 @@ module ScrapeUnblocker
|
|
|
6018
6018
|
})
|
|
6019
6019
|
end
|
|
6020
6020
|
|
|
6021
|
+
# SofaScore matches of a sport on a day, or live now.
|
|
6022
|
+
#
|
|
6023
|
+
# Lists a sport's matches from sofascore.com for one day in your time zone (or `live=true`
|
|
6024
|
+
# for those in progress), biggest competitions first, as JSON: `id`, `url`, `tournament`
|
|
6025
|
+
# (id, name, url, category / country, stage), `season`, `round`, `status` (type notstarted,
|
|
6026
|
+
# inprogress, finished, postponed, canceled, with its description such as '2nd half'),
|
|
6027
|
+
# `startTime` (ISO, UTC) and `startTimestamp`, `homeTeam` / `awayTeam` (id, name, short
|
|
6028
|
+
# name, code, country, url), `homeScore` / `awayScore` (current plus per-period and normal-
|
|
6029
|
+
# time scores), `winner`, red cards, seeds and first server (tennis), venue and referee when
|
|
6030
|
+
# known. Narrow with `country` (a country or category) or `tournament` (id, link or name),
|
|
6031
|
+
# and `status`. Pass a match `id` to `/sports/sofascore-match` for its stats and lineups.
|
|
6032
|
+
# Motorsport and cycling are races, not matches, and have no day list.
|
|
6033
|
+
#
|
|
6034
|
+
# @param sport [String] The sport: football, basketball, tennis, ice-hockey, american-
|
|
6035
|
+
# football, baseball, handball, volleyball, cricket, rugby, futsal, table-tennis, esports,
|
|
6036
|
+
# darts, snooker, mma, aussie-rules, waterpolo, floorball, bandy, badminton, beach-volley,
|
|
6037
|
+
# minifootball, padel, motorsport, cycling (soccer, hockey, nba, nfl and the like are
|
|
6038
|
+
# accepted). API default: football.
|
|
6039
|
+
# @param date [String] Day as YYYY-MM-DD, or today / yesterday / tomorrow (in `timezone`).
|
|
6040
|
+
# Default today.
|
|
6041
|
+
# @param timezone [String] Time zone the day is read in: an IANA name ('Europe/London',
|
|
6042
|
+
# 'America/New_York') or a UTC offset ('+02:00'). Default UTC.
|
|
6043
|
+
# @param live [Boolean] true for the matches in progress right now (date is then ignored).
|
|
6044
|
+
# API default: false.
|
|
6045
|
+
# @param status [String] Keep only: all, live, upcoming, finished. API default: all.
|
|
6046
|
+
# @param country [String] Only one country or category, by name, slug, ISO code or id:
|
|
6047
|
+
# 'england', 'Spain', 'US', and for tennis 'ATP', 'WTA'.
|
|
6048
|
+
# @param tournament [String] Only one competition: an id, a sofascore.com tournament link or
|
|
6049
|
+
# a name such as 'Premier League' or 'NBA'.
|
|
6050
|
+
# @param max_results [Integer] Matches to return (1-500), the biggest competitions first.
|
|
6051
|
+
# API default: 100.
|
|
6052
|
+
# Calls POST /sports/sofascore-events.
|
|
6053
|
+
def sofascore_events(sport: nil, date: nil, timezone: nil, live: nil, status: nil, country: nil, tournament: nil, max_results: nil)
|
|
6054
|
+
post_json("/sports/sofascore-events", {
|
|
6055
|
+
sport: sport,
|
|
6056
|
+
date: date,
|
|
6057
|
+
timezone: timezone,
|
|
6058
|
+
live: live,
|
|
6059
|
+
status: status,
|
|
6060
|
+
country: country,
|
|
6061
|
+
tournament: tournament,
|
|
6062
|
+
max_results: max_results,
|
|
6063
|
+
})
|
|
6064
|
+
end
|
|
6065
|
+
|
|
6066
|
+
# One SofaScore match with stats, lineups and incidents.
|
|
6067
|
+
#
|
|
6068
|
+
# Fetches one match from sofascore.com: `event` (teams, score by period, status, start time,
|
|
6069
|
+
# tournament, season, round, venue, referee) plus the `include` sections: `statistics` (per
|
|
6070
|
+
# period and group, e.g. possession, expected goals, shots, with home / away text and
|
|
6071
|
+
# numbers), `lineups` (formation, every player with position, shirt number, rating and match
|
|
6072
|
+
# statistics, missing players), `incidents` (goals, cards, substitutions, VAR, periods,
|
|
6073
|
+
# oldest first), `h2h` (team and manager records plus the last 10 meetings), `odds` (markets
|
|
6074
|
+
# with decimal and fractional odds), `momentum`, `pregame_form`, `votes`, `managers`,
|
|
6075
|
+
# `best_players` (player of the match and best rated per side), `shotmap` (every shot with
|
|
6076
|
+
# xG, xGOT, body part and coordinates), `commentary` and `highlights`. Sections the site
|
|
6077
|
+
# does not have for the match (e.g. statistics before kick-off) are named in `unavailable`.
|
|
6078
|
+
#
|
|
6079
|
+
# @param match [String] The match: its id (e.g. 16363904, from the search or events
|
|
6080
|
+
# endpoints) or a sofascore.com match link. A link without '#id:' names the pairing; the
|
|
6081
|
+
# match in progress, else the next, else the latest is used.
|
|
6082
|
+
# @param include [String, Array<String>] Sections to add, comma separated: statistics,
|
|
6083
|
+
# lineups, incidents, h2h, odds, momentum, pregame_form, votes, managers, best_players,
|
|
6084
|
+
# shotmap, commentary, highlights (or all / none). Default statistics,lineups,incidents.
|
|
6085
|
+
# Calls POST /sports/sofascore-match.
|
|
6086
|
+
def sofascore_match(match, include: nil)
|
|
6087
|
+
post_json("/sports/sofascore-match", {
|
|
6088
|
+
match: match,
|
|
6089
|
+
include: plugin_join(include, ","),
|
|
6090
|
+
})
|
|
6091
|
+
end
|
|
6092
|
+
|
|
6093
|
+
# Search SofaScore teams, players, tournaments and matches.
|
|
6094
|
+
#
|
|
6095
|
+
# Searches sofascore.com for `query` and returns the matches as JSON, best first. Each
|
|
6096
|
+
# result has `rank` (its place in the list), `type` (team, player, tournament, match,
|
|
6097
|
+
# manager, referee or venue), `id`, `name`, `slug`, a sofascore.com `url`, `sport`,
|
|
6098
|
+
# `country` and `followers`; a player adds `position`, `jerseyNumber` and its `team`, a
|
|
6099
|
+
# tournament its `category`, a match the same fields as `/sports/sofascore-events`. `sport`
|
|
6100
|
+
# keeps to one sport, `type` to one kind of result. Feed an `id` to `/sports/sofascore-
|
|
6101
|
+
# team`, `-player`, `-tournament` or `-match`.
|
|
6102
|
+
#
|
|
6103
|
+
# @param query [String] What to look for: a team, player, competition, match, manager,
|
|
6104
|
+
# referee or venue name, e.g. 'real madrid', 'sinner', 'premier league', 'arsenal chelsea'.
|
|
6105
|
+
# @param sport [String] The sport: football, basketball, tennis, ice-hockey, american-
|
|
6106
|
+
# football, baseball, handball, volleyball, cricket, rugby, futsal, table-tennis, esports,
|
|
6107
|
+
# darts, snooker, mma, aussie-rules, waterpolo, floorball, bandy, badminton, beach-volley,
|
|
6108
|
+
# minifootball, padel, motorsport, cycling (soccer, hockey, nba, nfl and the like are
|
|
6109
|
+
# accepted). Optional; narrows the search or name lookup to one sport.
|
|
6110
|
+
# @param type [String] Kind of result: all, teams, players, tournaments, matches, managers,
|
|
6111
|
+
# referees, venues (all mixes them, best match first). API default: all.
|
|
6112
|
+
# @param page [Integer] 1-based results page to start from (1-5); the site serves 20 per
|
|
6113
|
+
# page. API default: 1.
|
|
6114
|
+
# @param max_results [Integer] Results to collect across pages (1-100). API default: 20.
|
|
6115
|
+
# Calls POST /sports/sofascore-search.
|
|
6116
|
+
def sofascore_search(query, sport: nil, type: nil, page: nil, max_results: nil)
|
|
6117
|
+
post_json("/sports/sofascore-search", {
|
|
6118
|
+
query: query,
|
|
6119
|
+
sport: sport,
|
|
6120
|
+
type: type,
|
|
6121
|
+
page: page,
|
|
6122
|
+
max_results: max_results,
|
|
6123
|
+
})
|
|
6124
|
+
end
|
|
6125
|
+
|
|
6126
|
+
# A SofaScore team with matches, squad and transfers.
|
|
6127
|
+
#
|
|
6128
|
+
# Fetches a team from sofascore.com (tennis players and other individual competitors are
|
|
6129
|
+
# teams there too): `team` (name, short name, code, country, category, main tournament,
|
|
6130
|
+
# manager, venue with capacity, foundation date, followers, url) plus the `include`
|
|
6131
|
+
# sections: `last_matches` (most recent first) and `next_matches` (soonest first) in the
|
|
6132
|
+
# events shape, `squad` (players with position, shirt number, birth date, height, foot,
|
|
6133
|
+
# country, market value, contract), `tournaments` the team plays and `transfers` (in and out
|
|
6134
|
+
# with fee and date). `team` takes an id, a link or a name.
|
|
6135
|
+
#
|
|
6136
|
+
# @param team [String] The team (or a tennis player, MMA fighter and other individual
|
|
6137
|
+
# competitors): its id (e.g. 2829), a sofascore.com team link, or a name such as 'Real
|
|
6138
|
+
# Madrid' (best search match).
|
|
6139
|
+
# @param sport [String] The sport: football, basketball, tennis, ice-hockey, american-
|
|
6140
|
+
# football, baseball, handball, volleyball, cricket, rugby, futsal, table-tennis, esports,
|
|
6141
|
+
# darts, snooker, mma, aussie-rules, waterpolo, floorball, bandy, badminton, beach-volley,
|
|
6142
|
+
# minifootball, padel, motorsport, cycling (soccer, hockey, nba, nfl and the like are
|
|
6143
|
+
# accepted). Optional; narrows the search or name lookup to one sport.
|
|
6144
|
+
# @param include [String, Array<String>] Sections to add, comma separated: last_matches,
|
|
6145
|
+
# next_matches, squad, tournaments, transfers (or all / none). Default
|
|
6146
|
+
# last_matches,next_matches.
|
|
6147
|
+
# Calls POST /sports/sofascore-team.
|
|
6148
|
+
def sofascore_team(team, sport: nil, include: nil)
|
|
6149
|
+
post_json("/sports/sofascore-team", {
|
|
6150
|
+
team: team,
|
|
6151
|
+
sport: sport,
|
|
6152
|
+
include: plugin_join(include, ","),
|
|
6153
|
+
})
|
|
6154
|
+
end
|
|
6155
|
+
|
|
6156
|
+
# A SofaScore player with season stats and matches.
|
|
6157
|
+
#
|
|
6158
|
+
# Fetches a player from sofascore.com: `player` (name, team, position and detailed
|
|
6159
|
+
# positions, shirt number, birth date, height, preferred foot, country, market value,
|
|
6160
|
+
# contract end, followers, url) plus the `include` sections: `season_stats` (every statistic
|
|
6161
|
+
# SofaScore keeps for one competition and season, e.g. rating, goals, expected goals,
|
|
6162
|
+
# assists, passes, duels, saves), `seasons` (each competition with its seasons, to pick
|
|
6163
|
+
# `tournament` and `season`), `last_matches` (most recent first, with the player's rating,
|
|
6164
|
+
# minutes and goals or assists in each), `transfers`, `attributes` (attacking, technical,
|
|
6165
|
+
# tactical, defending, creativity scores) and `national_team` (caps, goals, debut). `player`
|
|
6166
|
+
# takes an id, a link or a name.
|
|
6167
|
+
#
|
|
6168
|
+
# @param player [String] The player: id (e.g. 12994), a sofascore.com player link, or a name
|
|
6169
|
+
# such as 'Lionel Messi' (best search match).
|
|
6170
|
+
# @param sport [String] The sport: football, basketball, tennis, ice-hockey, american-
|
|
6171
|
+
# football, baseball, handball, volleyball, cricket, rugby, futsal, table-tennis, esports,
|
|
6172
|
+
# darts, snooker, mma, aussie-rules, waterpolo, floorball, bandy, badminton, beach-volley,
|
|
6173
|
+
# minifootball, padel, motorsport, cycling (soccer, hockey, nba, nfl and the like are
|
|
6174
|
+
# accepted). Optional; narrows the search or name lookup to one sport.
|
|
6175
|
+
# @param include [String, Array<String>] Sections to add, comma separated: seasons,
|
|
6176
|
+
# season_stats, last_matches, transfers, attributes, national_team (or all / none). Default
|
|
6177
|
+
# season_stats,last_matches.
|
|
6178
|
+
# @param tournament [String] For season_stats: the competition id (see the seasons section).
|
|
6179
|
+
# Default the player's first listed competition.
|
|
6180
|
+
# @param season [String] For season_stats: a season id or its year as SofaScore writes it
|
|
6181
|
+
# ('26/27', '2026'). Default the latest.
|
|
6182
|
+
# Calls POST /sports/sofascore-player.
|
|
6183
|
+
def sofascore_player(player, sport: nil, include: nil, tournament: nil, season: nil)
|
|
6184
|
+
post_json("/sports/sofascore-player", {
|
|
6185
|
+
player: player,
|
|
6186
|
+
sport: sport,
|
|
6187
|
+
include: plugin_join(include, ","),
|
|
6188
|
+
tournament: tournament,
|
|
6189
|
+
season: season,
|
|
6190
|
+
})
|
|
6191
|
+
end
|
|
6192
|
+
|
|
6193
|
+
# A SofaScore competition with standings and fixtures.
|
|
6194
|
+
#
|
|
6195
|
+
# Fetches a competition and season from sofascore.com: `tournament` (name, category /
|
|
6196
|
+
# country, tier, title holder and record holders, divisions above and below, dates,
|
|
6197
|
+
# followers, url) and `season`, plus the `include` sections: `standings` (every table:
|
|
6198
|
+
# position, team, played, won, drawn, lost, scored, conceded, difference, points, promotion
|
|
6199
|
+
# or relegation note), `rounds`, `last_matches` (most recent first) and `next_matches`
|
|
6200
|
+
# (soonest first) in the events shape, `top_players` and `top_teams` (the top 10 in each
|
|
6201
|
+
# statistic, e.g. rating, goals, assists, expected goals) and `seasons` (every season with
|
|
6202
|
+
# its id). `tournament` takes an id, a link or a name.
|
|
6203
|
+
#
|
|
6204
|
+
# @param tournament [String] The competition: id (e.g. 17), a sofascore.com tournament link
|
|
6205
|
+
# (its '#id:' picks the season), or a name such as 'Premier League' or 'NBA' (best search
|
|
6206
|
+
# match).
|
|
6207
|
+
# @param sport [String] The sport: football, basketball, tennis, ice-hockey, american-
|
|
6208
|
+
# football, baseball, handball, volleyball, cricket, rugby, futsal, table-tennis, esports,
|
|
6209
|
+
# darts, snooker, mma, aussie-rules, waterpolo, floorball, bandy, badminton, beach-volley,
|
|
6210
|
+
# minifootball, padel, motorsport, cycling (soccer, hockey, nba, nfl and the like are
|
|
6211
|
+
# accepted). Optional; narrows the search or name lookup to one sport.
|
|
6212
|
+
# @param season [String] A season id or its year as SofaScore writes it ('26/27', '2026').
|
|
6213
|
+
# Default the current one.
|
|
6214
|
+
# @param include [String, Array<String>] Sections to add, comma separated: seasons,
|
|
6215
|
+
# standings, rounds, last_matches, next_matches, top_players, top_teams (or all / none).
|
|
6216
|
+
# Default standings,last_matches,next_matches.
|
|
6217
|
+
# Calls POST /sports/sofascore-tournament.
|
|
6218
|
+
def sofascore_tournament(tournament, sport: nil, season: nil, include: nil)
|
|
6219
|
+
post_json("/sports/sofascore-tournament", {
|
|
6220
|
+
tournament: tournament,
|
|
6221
|
+
sport: sport,
|
|
6222
|
+
season: season,
|
|
6223
|
+
include: plugin_join(include, ","),
|
|
6224
|
+
})
|
|
6225
|
+
end
|
|
6226
|
+
|
|
6021
6227
|
# Get a website's Similarweb traffic overview.
|
|
6022
6228
|
#
|
|
6023
6229
|
# Returns Similarweb's public traffic overview for `domain` as JSON: `globalRank`,
|
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.
|
|
4
|
+
version: 0.18.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
|
+
date: 2026-11-02 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
|