scrapeunblocker 0.1.1 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 14a2a59333d2e963fdcc36c9c49e13a6c571f71075e20ecc95709349063f73a6
4
- data.tar.gz: 30d8f86c088a1b2e3f8c1d0abc3de2532d744e0e3e32fda970b6b2dd8a5c0b6c
3
+ metadata.gz: 4d9a2366dce1f1f9586ccb5d9d0f5b9c667a1a9573f811093f017984118d138a
4
+ data.tar.gz: 527960e09c0159162825fe7ef7a75dcb071bafaf0872f847bcd25d6fd65df813
5
5
  SHA512:
6
- metadata.gz: 72008d80c3a4283e7237cbaef9eb7c72d9f8818109bf2e6011e76a743663f7871249585c8931a019b6d92e9d608e266018501b4d7276d80781268144e2efba5d
7
- data.tar.gz: b57c0a5c3ebb940ceb17a8186cf72b3409dd32c4e4ccaa4a663bf7293ba89f74ed1a919810bcd1f7aade4071da82c8a94c9af06a4d2139839aff5bede31bc698
6
+ metadata.gz: e71d1368c7be85c86736955c25f39043457ae20e733d7ebee33416717981588eb8f35f82a16c10c9dd18b2d961f920121b984417e3dfb42aa450ecab5b2ace77
7
+ data.tar.gz: 58cb22b93d148eb3cdc342cf184268c4826f2567380909bb964cb8ebb37a26644995df0dcbcb183e8d1266d5f50fd1f0bf21ff075ddc69c3ef6b20ed5f7da39c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.2 (2026-07-22)
4
+
5
+ - Added `oopbuy_search(keyword, ...)` for the new Oopbuy goods search plugin (`POST /goods/oopbuy-search`) - searches 1688, Taobao or the official channel and returns matched products (spu, title, price, monthSold, image, url) as a Hash.
6
+
3
7
  ## 0.1.1
4
8
 
5
9
  - Added `google_local(keyword, ...)` for the new Google Local (Maps) plugin (`POST /maps/google-local`) - returns local business listings (name, rating, reviews, price, category, address, hours) as a Hash.
data/README.md CHANGED
@@ -87,6 +87,15 @@ local = su.google_local("coffee shops in chicago", proxy_country: "US", gl: "us"
87
87
  local["results"].each { |biz| puts "#{biz['name']} #{biz['rating']} #{biz['address']}" }
88
88
  ```
89
89
 
90
+ ## Oopbuy goods search
91
+
92
+ ```ruby
93
+ goods = su.oopbuy_search("running shoes", channel: "1688", page: 1, page_size: 20, sort: "default")
94
+ goods["results"].each { |item| puts "#{item['title']} #{item['price']} #{item['url']}" }
95
+ ```
96
+
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. Brand keywords return HTTP 422.
98
+
90
99
  ## Cookies and the serving proxy
91
100
 
92
101
  ```ruby
@@ -80,6 +80,19 @@ module ScrapeUnblocker
80
80
  keyword: keyword, proxy_country: proxy_country, hl: hl, gl: gl)
81
81
  end
82
82
 
83
+ # Search Oopbuy (1688, Taobao or official channel) and return the goods as a Hash.
84
+ #
85
+ # Returns matched products, each with spu, channel, title, titleCn, price,
86
+ # originalPrice, priceCny, monthSold, image and url. +channel+ is one of
87
+ # "1688" (default), "taobao" or "official"; +sort+ is one of "default",
88
+ # "price_asc", "price_desc" or "best_selling". +page_size+ max is 60.
89
+ # Brand keywords return HTTP 422.
90
+ def oopbuy_search(keyword, channel: "1688", page: 1, page_size: 20, sort: "default", proxy_country: nil)
91
+ post_json("/goods/oopbuy-search",
92
+ keyword: keyword, channel: channel, page: page,
93
+ page_size: page_size, sort: sort, proxy_country: proxy_country)
94
+ end
95
+
83
96
  # Fetch an image URL through the bypass chain and return its raw bytes.
84
97
  def get_image(url, proxy_country: nil)
85
98
  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.1"
4
+ VERSION = "0.1.2"
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.1
4
+ version: 0.1.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-07-21 00:00:00.000000000 Z
11
+ date: 2026-07-22 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.