speed_spider 0.0.1 → 0.0.2

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
  SHA1:
3
- metadata.gz: abdb6ebdea8dbe7f00e7c9e487641a45d0d47b49
4
- data.tar.gz: 3b06cf74adb37f274516b16215ae71627a36ec69
3
+ metadata.gz: 86a431c73577bdaa232e9b9d0139f908ed64c0fe
4
+ data.tar.gz: 4dbdb508c96cad39a4c9da65ed2175135dcdd4c8
5
5
  SHA512:
6
- metadata.gz: fb6e3f517125ab47b511abaf4a1e09d3ecfeab330557c7fe60f165f3350de3434c0d57f3534c1134cefb97a340869afc2abafe8ec5a687e061340bbeccf36cc4
7
- data.tar.gz: 5bc260f898cf66898073fd547696b237a6ad89f45fd2650e5518983bcefa440bc8e4d5cf31da1ad4110ac3c0614e96aecf05389b19dde4f5e2e0c902bae48613
6
+ metadata.gz: 624c2c4ad8693a99dffe6637410918d3144dd4217d9cd6b81852f17ac7bd0ac7e8eafa1dfdabb5fdba3f895036edc3e8c2477e08573f39478d826b433713114f
7
+ data.tar.gz: c2d2285bd6eab018ea4d1f7a48a708bbb7e1db49f7f047da57b5a42a5e5de3f1cec5c2e3ee0240d08a6f5888093c00c596a1617797a37582d0bbb10b47256f67
data/README.md CHANGED
@@ -9,7 +9,7 @@ SpeedSpider is based on ruby spider framework [Anemone][1], it's easy to use and
9
9
  ### links in html pages
10
10
 
11
11
  * link, xpath: `//a[@href]`
12
- * stylesheet, xpath: `//link[@src]`
12
+ * stylesheet, xpath: `//link[@href]`
13
13
  * javascript, xpath: `//script[@src]`
14
14
  * iframe file, xpath: `//iframe[@src]`
15
15
  * image file, xpath: `//img[@src]`
@@ -25,7 +25,7 @@ install it with rubygem:
25
25
  gem install 'speed_spider'
26
26
 
27
27
  ## Usage
28
- Usage: speed_spider [options] start_url
28
+ Usage: spider [options] start_url
29
29
 
30
30
  options:
31
31
  -S, --slient slient output
@@ -46,13 +46,13 @@ install it with rubygem:
46
46
 
47
47
  ## Example
48
48
 
49
- speed_spider http://twitter.github.io/bootstrap/
49
+ spider http://twitter.github.io/bootstrap/
50
50
 
51
51
  It will download all files within the same domain as `twitter.github.io`, and save to `download/twitter.github.io/`.
52
52
 
53
- speed_spider -b http://ruby-doc.org/core-2.0/ http://ruby-doc.org/core-2.0/
53
+ spider -b http://ruby-doc.org/core-2.0/ http://ruby-doc.org/core-2.0/
54
54
 
55
- It will only download urls start with http://ruby-doc.org/core-2.0/, notice `assets` files like image, css, js, font will not obey `base_url` rule.
55
+ It will only download urls start with `http://ruby-doc.org/core-2.0/`, notice `assets` files like image, css, js, font will not obey `base_url` rule.
56
56
 
57
57
  ## Contributing
58
58
 
File without changes
@@ -47,7 +47,7 @@ module SpeedSpider
47
47
 
48
48
  def parse!
49
49
  @option_parser = OptionParser.new do |opts|
50
- opts.banner = "Usage: speed_spider [options] start_url"
50
+ opts.banner = "Usage: spider [options] start_url"
51
51
  opts.separator ""
52
52
  opts.separator "options:"
53
53
 
@@ -1,3 +1,3 @@
1
1
  module SpeedSpider
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
8
8
  spec.version = SpeedSpider::VERSION
9
9
  spec.authors = ["Ryan Wang"]
10
10
  spec.email = ["wongyouth@gmail.com"]
11
- spec.description = %q{A simple web spider tool for crawling pages to local based on a url}
11
+ spec.description = %q{A simple and speedy web spider for pages downloading}
12
12
  spec.summary = %q{A simple web spider tool for download pages from a base url including css js html and iframe source files}
13
13
  spec.homepage = ""
14
14
  spec.license = "MIT"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: speed_spider
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Wang
@@ -52,11 +52,11 @@ dependencies:
52
52
  - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
- description: A simple web spider tool for crawling pages to local based on a url
55
+ description: A simple and speedy web spider for pages downloading
56
56
  email:
57
57
  - wongyouth@gmail.com
58
58
  executables:
59
- - speed_spider
59
+ - spider
60
60
  extensions: []
61
61
  extra_rdoc_files: []
62
62
  files:
@@ -65,7 +65,7 @@ files:
65
65
  - LICENSE.txt
66
66
  - README.md
67
67
  - Rakefile
68
- - bin/speed_spider
68
+ - bin/spider
69
69
  - lib/speed_spider.rb
70
70
  - lib/speed_spider/anemone_hack.rb
71
71
  - lib/speed_spider/cli.rb