apiverve_webscreenshots 1.2.3 → 1.2.5
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/apiverve_webscreenshots/client.rb +1 -1
- data/lib/apiverve_webscreenshots.rb +1 -1
- metadata +8 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ec5f9d7d9badefb7a72f9ddd2aaf5beb96bf6568c254a4a78c8c383367d453d2
|
|
4
|
+
data.tar.gz: 4b4e9c7ea45f932f7efc0a1cc0ad72badbf2ffa35e4d6fde091437c61e033d60
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cd10f33334848db92011a120413aa6168607d4ba035cb44bc56d5709a5d08543e047e8311219991bf9e9d5069545896fae340cbc5f2f2999c29c91aeacf179c7
|
|
7
|
+
data.tar.gz: 9894f3e61b737142a35e575baf44686e3ece20ea41818c76ddcba91fc0d3be27f2ea647b07843015006091c880b43bf885c56afce9ec5d1948429b0efe6ac463
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Website Screenshot API - Ruby Gem
|
|
2
2
|
|
|
3
|
-
Website Screenshot renders webpage screenshots from any URL
|
|
3
|
+
Website Screenshot renders webpage screenshots from any URL as PNG, JPEG or WebP, with ads blocked and cookie notices dismissed. It returns a signed download link with an expiration timestamp, supporting custom viewport dimensions up to 3840 pixels wide, single-element capture by CSS selector, a capture delay, a page-load wait strategy and JPEG or WebP quality.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -19,7 +19,7 @@ module APIVerve
|
|
|
19
19
|
DEFAULT_TIMEOUT = 30
|
|
20
20
|
|
|
21
21
|
# Validation rules for parameters
|
|
22
|
-
VALIDATION_RULES = { 'url' => { type: 'string', required: true, format: 'url' }, 'type' => { type: 'string', required: false }, 'width' => { type: 'number', required: false, min: 100, max: 3840 }, 'height' => { type: 'number', required: false, min: 100, max: 3840 }, 'fullpage' => { type: 'boolean', required: false } }
|
|
22
|
+
VALIDATION_RULES = { 'url' => { type: 'string', required: true, format: 'url' }, 'type' => { type: 'string', required: false }, 'width' => { type: 'number', required: false, min: 100, max: 3840 }, 'height' => { type: 'number', required: false, min: 100, max: 3840 }, 'fullpage' => { type: 'boolean', required: false }, 'selector' => { type: 'string', required: false, max_length: 200 }, 'delay' => { type: 'number', required: false, min: 0, max: 5000 }, 'waituntil' => { type: 'string', required: false }, 'quality' => { type: 'number', required: false, min: 1, max: 100 } }
|
|
23
23
|
|
|
24
24
|
# Format validation patterns
|
|
25
25
|
FORMAT_PATTERNS = {
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: apiverve_webscreenshots
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- APIVerve
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: faraday
|
|
@@ -58,9 +57,11 @@ dependencies:
|
|
|
58
57
|
- - "~>"
|
|
59
58
|
- !ruby/object:Gem::Version
|
|
60
59
|
version: '2.0'
|
|
61
|
-
description: Website Screenshot renders webpage screenshots from any URL
|
|
62
|
-
|
|
63
|
-
supporting custom viewport dimensions up to 3840
|
|
60
|
+
description: Website Screenshot renders webpage screenshots from any URL as PNG, JPEG
|
|
61
|
+
or WebP, with ads blocked and cookie notices dismissed. It returns a signed download
|
|
62
|
+
link with an expiration timestamp, supporting custom viewport dimensions up to 3840
|
|
63
|
+
pixels wide, single-element capture by CSS selector, a capture delay, a page-load
|
|
64
|
+
wait strategy and JPEG or WebP quality.
|
|
64
65
|
email:
|
|
65
66
|
- hello@apiverve.com
|
|
66
67
|
executables: []
|
|
@@ -79,7 +80,6 @@ metadata:
|
|
|
79
80
|
source_code_uri: https://github.com/apiverve/webscreenshots-API/tree/main/ruby
|
|
80
81
|
changelog_uri: https://apiverve.com/changelog
|
|
81
82
|
documentation_uri: https://docs.apiverve.com/ref/webscreenshots
|
|
82
|
-
post_install_message:
|
|
83
83
|
rdoc_options: []
|
|
84
84
|
require_paths:
|
|
85
85
|
- lib
|
|
@@ -94,8 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
94
94
|
- !ruby/object:Gem::Version
|
|
95
95
|
version: '0'
|
|
96
96
|
requirements: []
|
|
97
|
-
rubygems_version:
|
|
98
|
-
signing_key:
|
|
97
|
+
rubygems_version: 4.0.23
|
|
99
98
|
specification_version: 4
|
|
100
99
|
summary: Website Screenshot API - Ruby Client
|
|
101
100
|
test_files: []
|