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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 327da92cb63a1a8e6f58e58a4806d4e10b2cfa491960306544165be6423c9b3e
4
- data.tar.gz: c6f2056f9ca5614a76bce68bdf2f001668ab626764bce89cf1b1bc4a8f68f833
3
+ metadata.gz: bce8153d8387fd4b9487b5b807921a7b4e257fae4c1e8ac715d0188e6383211a
4
+ data.tar.gz: '0397a7325d6f9b47acf8c5774d31d6045440e725a3f798a1a40bb945168f1e8f'
5
5
  SHA512:
6
- metadata.gz: 91b00e39fbf5943501cc7f67eb1c684811d10ae3f5acc0263a3a6259ae64ad51d01d89aba75576990d7517a07a53660ec1f63d13adbbaf5bdd6380b7d9dd8050
7
- data.tar.gz: 318d7c11aa087a20a8f5c0dd922e9f11f2eeca1be7c165bfa04d54d775d0688e3d3532434a4987cca039c362bb3817542331ce135f8ec686f0178d6e5fa343e5
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}"
@@ -1,3 +1,3 @@
1
1
  module Snapcrawl
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
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.2
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