firecrawl-sdk 1.17.7 → 1.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/README.md +1 -1
- data/lib/firecrawl/client.rb +13 -3
- data/lib/firecrawl/models/product_profile.rb +8 -4
- data/lib/firecrawl/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: 6127c4b3f294f6ed277ec8bb3ff5e6509e77433574f464059e2ee132a538d8a7
|
|
4
|
+
data.tar.gz: 381b43134f7413951f904b74898c1ecff899c1b1e3aa110ab3a127dc818fec15
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 240a043cdb953f513bebfc8081a7c3174a5057a94f1f5d1d579b0a988ed358701cc905a04d218f6d05c7ba57e6ac9d4a6b459f4348dc6d3916d7de9334f0ba09
|
|
7
|
+
data.tar.gz: fb24f0b5f108a67de0fe602d2c852f0b2933ec75a8345badf4498b88a658c670ffc0b8714a5fb6e885da502dcf1d4231f4b0a1f93c4090793c6ae95a88432a59
|
data/README.md
CHANGED
|
@@ -195,7 +195,7 @@ results = client.search("latest news",
|
|
|
195
195
|
|
|
196
196
|
### Developer Search
|
|
197
197
|
|
|
198
|
-
Search public repositories, GitHub issues, merged pull requests, READMEs and code documentation.
|
|
198
|
+
Search public repositories, GitHub issues, merged pull requests, READMEs and code documentation. It replaces the research index GitHub search, which was removed after 2026-11-03.
|
|
199
199
|
|
|
200
200
|
```ruby
|
|
201
201
|
response = client.developer_search(
|
data/lib/firecrawl/client.rb
CHANGED
|
@@ -131,11 +131,21 @@ module Firecrawl
|
|
|
131
131
|
@http.get("#{path}#{query(options.merge("intent" => intent, "origin" => "ruby-sdk@#{Firecrawl::VERSION}"))}")
|
|
132
132
|
end
|
|
133
133
|
|
|
134
|
+
# Look up a protein's UniProt location, function and GO cellular-component terms.
|
|
135
|
+
# The response's "notice" is the UniProt credit and license. Show it with the results.
|
|
136
|
+
#
|
|
137
|
+
# @param protein [String] UniProt accession, entry name, gene symbol or protein name
|
|
138
|
+
# @param options [Hash] optional query parameters
|
|
139
|
+
# @return [Hash]
|
|
140
|
+
def lookup_protein(protein, options = {})
|
|
141
|
+
raise ArgumentError, "Protein is required" if protein.nil?
|
|
142
|
+
@http.get("/v2/search/research/proteins#{query(options.merge("protein" => protein, "origin" => "ruby-sdk@#{Firecrawl::VERSION}"))}")
|
|
143
|
+
end
|
|
144
|
+
|
|
134
145
|
# Search GitHub research content.
|
|
135
146
|
#
|
|
136
|
-
# @deprecated
|
|
137
|
-
#
|
|
138
|
-
# results.
|
|
147
|
+
# @deprecated The research index GitHub search endpoint was removed after
|
|
148
|
+
# 2026-11-03. Use {#developer_search} instead.
|
|
139
149
|
# @param query_text [String] GitHub query
|
|
140
150
|
# @param options [Hash] optional query parameters
|
|
141
151
|
# @return [Hash]
|
|
@@ -26,13 +26,14 @@ module Firecrawl
|
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
|
|
29
|
-
# Stock availability information for a variant. Always present
|
|
29
|
+
# Stock availability information for a variant. Always present;
|
|
30
|
+
# in_stock is nil when the page does not state whether it is in stock.
|
|
30
31
|
class Availability
|
|
31
32
|
attr_reader :in_stock, :text
|
|
32
33
|
|
|
33
34
|
def initialize(data)
|
|
34
35
|
data ||= {}
|
|
35
|
-
@in_stock = data["inStock"]
|
|
36
|
+
@in_stock = data["inStock"]
|
|
36
37
|
@text = data["text"]
|
|
37
38
|
end
|
|
38
39
|
end
|
|
@@ -49,12 +50,15 @@ module Firecrawl
|
|
|
49
50
|
# A purchasable variant of a product. Pricing, availability, and images
|
|
50
51
|
# live here rather than on the top-level product.
|
|
51
52
|
class Variant
|
|
52
|
-
attr_reader :id, :sku, :
|
|
53
|
-
:availability, :images
|
|
53
|
+
attr_reader :id, :sku, :gtin, :mpn, :condition, :title, :values,
|
|
54
|
+
:price, :sale, :availability, :images
|
|
54
55
|
|
|
55
56
|
def initialize(data)
|
|
56
57
|
@id = data["id"]
|
|
57
58
|
@sku = data["sku"]
|
|
59
|
+
@gtin = data["gtin"]
|
|
60
|
+
@mpn = data["mpn"]
|
|
61
|
+
@condition = data["condition"]
|
|
58
62
|
@title = data["title"]
|
|
59
63
|
@values = data["values"]
|
|
60
64
|
@price = data["price"] && Price.new(data["price"])
|
data/lib/firecrawl/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: firecrawl-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.18.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Firecrawl
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-11-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: 'A type-safe Ruby client for the Firecrawl v2 API: search, scrape, parse,
|
|
14
14
|
crawl, map, and interact with the web, run batch scrapes, and run Agent and Monitor
|