scrapeunblocker 0.1.8 → 0.1.9

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: '038dc9fc1bd496b441430ed4f1def53055dfb98db2cf21d40ec0242bcd66f344'
4
- data.tar.gz: d8fb2745df9da6ac37db17308670f87b1c4131e2b9dfde9e5107ee4fe9e9c260
3
+ metadata.gz: 28108195aac1cc524421665dfd8eafcf8c41e0419f0e692172b72f55ab3912c8
4
+ data.tar.gz: 9f80e41ef6047c3b12e32338739c9edd3a0d796211933a09f47b5dd3b70708e8
5
5
  SHA512:
6
- metadata.gz: ebc1b6eec94316dfb50c56b6109212eaaec54e5b8a0087f8e11f9cc9c634c751c1fed8bafe0bad51d8cf45ba5cd4d978f46feb40fb9c0d64de18aee98712ec46
7
- data.tar.gz: 444e12bb48cfcf2e3b1cee4d76676c4334d234cb76a8642917845e4ac3b9a179786abac31c77e7251cf2eca95c1bf3e16ae12d4ace9c6aa131581617d01c12ad
6
+ metadata.gz: 04040b3a41778d5a98307082d147ca90be55992453dd64409e09b94a7cbee9b5c767585fccb3150d426505ba3f6f533215dafdf63a2e675ce024f6909fe2d925
7
+ data.tar.gz: 65a01b202aea9d3e94126692df4de80d35312821ee6a14425c6cca8f63e2cf59a0d8f51c38cd1e54e972cbe844e80e0b1a461b38948ce8855682d5ad6a7d67c3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.9 (2026-08-28)
4
+
5
+ - Added `amazon_product` and `amazon_search` for the new Amazon plugin. `amazon_product(asin:/url:)` returns one product - title, brand, numeric price and currency, list price and savings, availability, rating, review count, seller, feature bullets, categories and images. `amazon_search(keyword, ...)` returns a keyword search's cards - asin, title, price, list price, rating, review count, a clean product URL, image and the sponsored/prime flags - on any of 20 regional marketplaces.
6
+ - Prices come back in the right currency automatically: `proxy_country` defaults to the marketplace's home country (amazon.com -> US, amazon.de -> DE), pinning the exit over our ISP pool.
7
+
3
8
  ## 0.1.8 (2026-07-31)
4
9
 
5
10
  - Added `ebay_search` for the new eBay Search plugin: listings from any of the 19 regional eBay marketplaces as structured JSON - title, numeric price and currency, condition with a normalised `conditionCode`, seller username and feedback, shipping cost, sold/watcher/bid counts, image and a clean item URL.
data/README.md CHANGED
@@ -96,6 +96,24 @@ goods["results"].each { |item| puts "#{item['title']} #{item['price']} #{item['u
96
96
 
97
97
  `channel` is one of `"1688"` (default), `"taobao"` or `"official"`. `sort` is one of `"default"`, `"price_asc"`, `"price_desc"` or `"best_selling"`. `page_size` max is 60. Oopbuy trademark-blocks brand keywords at its own backend: those come back as a successful `200` with `keywordRejected: true` and an empty `results` array, not an error.
98
98
 
99
+ ## Amazon
100
+
101
+ Product and search data as a Hash, priced in the marketplace's own currency:
102
+
103
+ ```ruby
104
+ # One product by ASIN (or url: "https://www.amazon.de/dp/B0BSHF7WHW")
105
+ product = su.amazon_product(asin: "B0BSHF7WHW", marketplace: "amazon.com")
106
+ puts [product["title"], product["price"], product["currency"], product["rating"]].join(" | ")
107
+
108
+ # Keyword search
109
+ results = su.amazon_search("wireless headphones", sort: "price_asc")
110
+ results["results"].each do |item|
111
+ puts [item["title"], item["price"], item["currency"], item["asin"]].join(" | ")
112
+ end
113
+ ```
114
+
115
+ `proxy_country` defaults to the marketplace's home country (`amazon.com` -> US, `amazon.de` -> DE), so prices come back in the right currency with no configuration.
116
+
99
117
  ## eBay search
100
118
 
101
119
  ```ruby
@@ -121,6 +121,35 @@ module ScrapeUnblocker
121
121
  proxy_country: proxy_country)
122
122
  end
123
123
 
124
+ # Scrape one Amazon product by ASIN or URL and return it as a Hash.
125
+ #
126
+ # Returns title, brand, numeric price and currency, list price and savings,
127
+ # availability, rating, review count, seller, feature bullets, categories
128
+ # and images. Prices come back in the marketplace's own currency:
129
+ # +proxy_country+ defaults to the marketplace's home country
130
+ # (amazon.com -> US), pinning the exit over the ISP pool. Pass either
131
+ # +asin+ (with +marketplace+) or a full product +url+.
132
+ def amazon_product(asin: nil, url: nil, marketplace: "amazon.com", proxy_country: nil)
133
+ post_json("/marketplace/amazon-product",
134
+ asin: asin, url: url, marketplace: marketplace,
135
+ proxy_country: proxy_country)
136
+ end
137
+
138
+ # Search Amazon and return the result cards as an Array of Hashes.
139
+ #
140
+ # Each card carries asin, title, numeric price and currency, list price,
141
+ # rating, review count, a clean product URL, image and the sponsored /
142
+ # prime flags. +sort+ is "featured" (default), "price_asc", "price_desc",
143
+ # "avg_review" or "newest". Prices are in the marketplace's own currency;
144
+ # +proxy_country+ defaults to the marketplace's home country.
145
+ def amazon_search(keyword, marketplace: "amazon.com", page: 1, sort: "featured",
146
+ min_price: nil, max_price: nil, proxy_country: nil)
147
+ post_json("/marketplace/amazon-search",
148
+ keyword: keyword, marketplace: marketplace, page: page,
149
+ sort: sort, min_price: min_price, max_price: max_price,
150
+ proxy_country: proxy_country)
151
+ end
152
+
124
153
  # Fetch an image URL through the bypass chain and return its raw bytes.
125
154
  def get_image(url, proxy_country: nil)
126
155
  request("/getImage", url: url, proxy_country: proxy_country)[:body]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ScrapeUnblocker
4
- VERSION = "0.1.8"
4
+ VERSION = "0.1.9"
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.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - ScrapeUnblocker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-07-31 00:00:00.000000000 Z
11
+ date: 2026-08-28 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 Skyscanner flights/hotels/car-hire scraping as JSON.