firecrawl-sdk 1.4.1 → 1.5.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 +14 -3
- data/lib/firecrawl/models/document.rb +3 -2
- data/lib/firecrawl/models/parse_options.rb +2 -2
- 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: 364810a7f7627c43f70a5d9f008f3a3fc0bcfb2f655a780190d93f8b577de1bf
|
|
4
|
+
data.tar.gz: 8191bc44441edd5d9abe7671cfc9851388058be954684cc92ddf0e37cf7e3669
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 83d1e41c97ec1abb35b8d14cb0d7003b1a8a3aadbd99ff0526c088e52b75405a80b7dda5b6cb8e6e7ea9edcaa1e519d13e8b5884dcd04880cdb24b4f7a7346d6
|
|
7
|
+
data.tar.gz: 057e47a4e06af5dc218413fd574aa7b6f22a09e3ec3878efe2d3cc4d6ef0dbdbd6b2db28ab11b48fbb7385d7b6b76d58f452b04c0698468e3597c5e08af50c58
|
data/README.md
CHANGED
|
@@ -11,7 +11,7 @@ Ruby SDK for the [Firecrawl](https://firecrawl.dev) v2 web scraping API.
|
|
|
11
11
|
Add to your `Gemfile`:
|
|
12
12
|
|
|
13
13
|
```ruby
|
|
14
|
-
gem "firecrawl-sdk", "~> 1.
|
|
14
|
+
gem "firecrawl-sdk", "~> 1.5"
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
Or install directly:
|
|
@@ -63,12 +63,23 @@ doc = client.scrape("https://example.com",
|
|
|
63
63
|
puts doc.html
|
|
64
64
|
```
|
|
65
65
|
|
|
66
|
+
### Video Extraction
|
|
67
|
+
|
|
68
|
+
Use the `video` format on supported video URLs, including YouTube and TikTok. The returned `video` field is a signed URL to the extracted video file.
|
|
69
|
+
|
|
70
|
+
```ruby
|
|
71
|
+
doc = client.scrape("https://www.youtube.com/watch?v=dQw4w9WgXcQ",
|
|
72
|
+
Firecrawl::Models::ScrapeOptions.new(formats: ["video"]))
|
|
73
|
+
|
|
74
|
+
puts doc.video
|
|
75
|
+
```
|
|
76
|
+
|
|
66
77
|
### Parse
|
|
67
78
|
|
|
68
79
|
Upload a local file (`html`, `pdf`, `docx`, etc.) via multipart form data and
|
|
69
80
|
parse it synchronously. Parse options intentionally exclude browser-only
|
|
70
|
-
features such as change tracking, screenshot, branding,
|
|
71
|
-
location, and mobile. The `proxy` option only accepts `"auto"` or `"basic"`.
|
|
81
|
+
features such as change tracking, screenshot, branding, audio, video, actions,
|
|
82
|
+
wait_for, location, and mobile. The `proxy` option only accepts `"auto"` or `"basic"`.
|
|
72
83
|
|
|
73
84
|
```ruby
|
|
74
85
|
# From disk
|
|
@@ -6,8 +6,8 @@ module Firecrawl
|
|
|
6
6
|
class Document
|
|
7
7
|
attr_reader :markdown, :html, :raw_html, :json, :summary,
|
|
8
8
|
:metadata, :links, :images, :screenshot, :audio,
|
|
9
|
-
:attributes, :actions, :answer, :highlights,
|
|
10
|
-
:change_tracking, :branding
|
|
9
|
+
:video, :attributes, :actions, :answer, :highlights,
|
|
10
|
+
:warning, :change_tracking, :branding
|
|
11
11
|
|
|
12
12
|
def initialize(data)
|
|
13
13
|
@markdown = data["markdown"]
|
|
@@ -20,6 +20,7 @@ module Firecrawl
|
|
|
20
20
|
@images = data["images"]
|
|
21
21
|
@screenshot = data["screenshot"]
|
|
22
22
|
@audio = data["audio"]
|
|
23
|
+
@video = data["video"]
|
|
23
24
|
@attributes = data["attributes"]
|
|
24
25
|
@actions = data["actions"]
|
|
25
26
|
@answer = data["answer"]
|
|
@@ -5,10 +5,10 @@ module Firecrawl
|
|
|
5
5
|
# Options for parsing uploaded files via `/v2/parse`.
|
|
6
6
|
#
|
|
7
7
|
# Parse does not support browser-rendering features (actions, waitFor,
|
|
8
|
-
# location, mobile) nor screenshot/branding/changeTracking formats. The
|
|
8
|
+
# location, mobile) nor screenshot/branding/audio/video/changeTracking formats. The
|
|
9
9
|
# proxy field only accepts "auto" or "basic".
|
|
10
10
|
class ParseOptions
|
|
11
|
-
UNSUPPORTED_FORMATS = %w[changeTracking screenshot screenshot@fullPage branding].freeze
|
|
11
|
+
UNSUPPORTED_FORMATS = %w[changeTracking screenshot screenshot@fullPage branding audio video].freeze
|
|
12
12
|
|
|
13
13
|
FIELDS = %i[
|
|
14
14
|
formats headers include_tags exclude_tags only_main_content
|
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.5.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-05-
|
|
11
|
+
date: 2026-05-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: A type-safe Ruby client for the Firecrawl v2 API. Supports scraping,
|
|
14
14
|
crawling, batch scraping, URL mapping, web search, and AI agent operations.
|