downer 0.3.0 → 0.3.1
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.
- data/README.rdoc +15 -4
- data/downer.gemspec +1 -1
- data/lib/downer/options.rb +0 -4
- data/version.yml +1 -1
- metadata +3 -3
data/README.rdoc
CHANGED
|
@@ -1,14 +1,25 @@
|
|
|
1
1
|
= Downer
|
|
2
2
|
|
|
3
|
-
Downer is a simple personal tool used to download a sequential list of URLs contained in a text file.
|
|
3
|
+
Downer is a simple personal tool used to help you download items from the command line. Currently, there are 2 primary uses for Downer: downloading a sequential list of URLs contained in a text file and downloading a collection of images from a web page. Over time, I'd like to turn this into a truly useful downloading utility to help with frequent web development chores.
|
|
4
4
|
|
|
5
|
-
== Usage:
|
|
6
|
-
|
|
5
|
+
== Usage Examples:
|
|
6
|
+
|
|
7
|
+
=== Downloading images from a webpage
|
|
8
|
+
Type in the website url you'd like to scrape and pass downer the '-i' flag:
|
|
9
|
+
|
|
10
|
+
$ downer -i http://www.cnn.com ~/Desktop/tmp # will download all <IMG> tags from site
|
|
11
|
+
|
|
12
|
+
=== Downloading a single list of urls
|
|
13
|
+
Create a single text file, each line containing a url you wish to download. And fire off the following command:
|
|
7
14
|
|
|
8
|
-
=== From bash:
|
|
9
15
|
$ downer myfile.txt ~/Desktop/myFolder # will donwload each file into the myFolder directory
|
|
10
16
|
|
|
11
17
|
|
|
18
|
+
== Future versioning plans:
|
|
19
|
+
|
|
20
|
+
* To enable downloads of images referenced in CSS
|
|
21
|
+
* To enable downloads of images through a search engine like Google
|
|
22
|
+
|
|
12
23
|
== Copyright
|
|
13
24
|
|
|
14
25
|
Copyright (c) 2010 Nate Miller. See LICENSE for details.
|
data/downer.gemspec
CHANGED
data/lib/downer/options.rb
CHANGED
|
@@ -10,10 +10,6 @@ module Downer
|
|
|
10
10
|
@opts = OptionParser.new do |o|
|
|
11
11
|
o.banner = "Usage: downer -flags URL_SOURCE DESTINATION_DIR"
|
|
12
12
|
|
|
13
|
-
o.on('-w', '--web', 'Declare source as a url') do |url|
|
|
14
|
-
self[:is_website] = true
|
|
15
|
-
end
|
|
16
|
-
|
|
17
13
|
o.on('-i', '--image', 'When combined with w will download JPG,GIF,PNG formats') do
|
|
18
14
|
self[:images_only] = true
|
|
19
15
|
end
|
data/version.yml
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: downer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 17
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 3
|
|
9
|
-
-
|
|
10
|
-
version: 0.3.
|
|
9
|
+
- 1
|
|
10
|
+
version: 0.3.1
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Nate Miller
|