snapcrawl 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/snapcrawl/docopt.txt +48 -0
- data/lib/snapcrawl/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bce8153d8387fd4b9487b5b807921a7b4e257fae4c1e8ac715d0188e6383211a
|
4
|
+
data.tar.gz: '0397a7325d6f9b47acf8c5774d31d6045440e725a3f798a1a40bb945168f1e8f'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a626ca6aa678dcbda8b88df754dba68366b53e38daa1ffb23f6bebbe33d272cf653bbfdbe02c4134e1a2780b0e9e06c784b50dc8ac7db973b48170792d30fa6a
|
7
|
+
data.tar.gz: 02ceff3026e12416e056fa7ad417b2f134c75f534829a83f045651247f57f298bf054549df7b11c5767801b45a491f6cfd76a204df6eef1743adeb8d3a1ce5d5
|
@@ -0,0 +1,48 @@
|
|
1
|
+
Snapcrawl
|
2
|
+
|
3
|
+
Usage:
|
4
|
+
snapcrawl URL [options]
|
5
|
+
snapcrawl -h | --help
|
6
|
+
snapcrawl -v | --version
|
7
|
+
|
8
|
+
Options:
|
9
|
+
-f, --folder PATH
|
10
|
+
Where to save screenshots [default: snaps]
|
11
|
+
|
12
|
+
-n, --name TEMPLATE
|
13
|
+
Filename template. Include the string '%{url}' anywhere in the name to
|
14
|
+
use the captured URL in the filename [default: %{url}]
|
15
|
+
|
16
|
+
-a, --age SECONDS
|
17
|
+
Number of seconds to consider screenshots fresh [default: 86400]
|
18
|
+
|
19
|
+
-d, --depth LEVELS
|
20
|
+
Number of levels to crawl [default: 1]
|
21
|
+
|
22
|
+
-W, --width PIXELS
|
23
|
+
Screen width in pixels [default: 1280]
|
24
|
+
|
25
|
+
-H, --height PIXELS
|
26
|
+
Screen height in pixels. Use 0 to capture the full page [default: 0]
|
27
|
+
|
28
|
+
-s, --selector SELECTOR
|
29
|
+
CSS selector to capture
|
30
|
+
|
31
|
+
-o, --only REGEX
|
32
|
+
Include only URLs that match REGEX
|
33
|
+
|
34
|
+
-h, --help
|
35
|
+
Show this screen
|
36
|
+
|
37
|
+
-v, --version
|
38
|
+
Show version number
|
39
|
+
|
40
|
+
Examples:
|
41
|
+
snapcrawl example.com
|
42
|
+
snapcrawl example.com -d2 -fscreens
|
43
|
+
snapcrawl example.com -d2 > out.txt 2> err.txt &
|
44
|
+
snapcrawl example.com -W360 -H480
|
45
|
+
snapcrawl example.com --selector "#main-content"
|
46
|
+
snapcrawl example.com --only "products|collections"
|
47
|
+
snapcrawl example.com --name "screenshot-%{url}"
|
48
|
+
snapcrawl example.com --name "`date +%Y%m%d`_%{url}"
|
data/lib/snapcrawl/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: snapcrawl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danny Ben Shitrit
|
@@ -112,6 +112,7 @@ files:
|
|
112
112
|
- bin/snapcrawl
|
113
113
|
- lib/snapcrawl.rb
|
114
114
|
- lib/snapcrawl/crawler.rb
|
115
|
+
- lib/snapcrawl/docopt.txt
|
115
116
|
- lib/snapcrawl/exceptions.rb
|
116
117
|
- lib/snapcrawl/version.rb
|
117
118
|
homepage: https://github.com/DannyBen/snapcrawl
|