flickr-folder 0.1.0 → 0.1.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 +35 -0
- data/VERSION +1 -1
- data/flickr-folder.gemspec +1 -1
- metadata +1 -1
data/README.rdoc
CHANGED
@@ -2,6 +2,41 @@
|
|
2
2
|
|
3
3
|
Uses the Flickr API (through flickr_fu) to fill a folder with images that match a specified search string and quantity.
|
4
4
|
|
5
|
+
Results can be filtered by passing a filter proc that will be invoked per photo, so that you can further filter your
|
6
|
+
photos beyond what the Flickr API provides in its search syntax. For example, the API won't let you search based on
|
7
|
+
image resolution.
|
8
|
+
|
9
|
+
If you delete any photos and then run the update method again then it will automatically find new images that match your
|
10
|
+
search conditions and your filter, and it will check them against a SQLite3 database to make sure that it never downloads
|
11
|
+
the same photo twice.
|
12
|
+
|
13
|
+
= Example usage
|
14
|
+
|
15
|
+
require 'rubygems'
|
16
|
+
require 'flickr-folder'
|
17
|
+
|
18
|
+
FlickrFolder.new({
|
19
|
+
:config => 'flickr.yml',
|
20
|
+
:folder => {
|
21
|
+
:path => 'photos',
|
22
|
+
:number => 250,
|
23
|
+
:minimum_resolution => 1000
|
24
|
+
},
|
25
|
+
:search => {
|
26
|
+
:tags => 'miami beach',
|
27
|
+
:sort => 'interestingness-desc'
|
28
|
+
}
|
29
|
+
}).update
|
30
|
+
|
31
|
+
= API key
|
32
|
+
|
33
|
+
You need an API key from Flickr. Don't worry, it's quick and easy to get one. Just sign up at Flickr, log in, and go
|
34
|
+
to the "App Garden"[http://www.flickr.com/services/apps/create/apply] to create your key. Then create a YML file that
|
35
|
+
looks like this:
|
36
|
+
|
37
|
+
key: "0923400YOUR0KEY0GOES0HERE00198"
|
38
|
+
secret: "987YOUR0SECRET0HERE023"
|
39
|
+
|
5
40
|
== Note on Patches/Pull Requests
|
6
41
|
|
7
42
|
* Fork the project.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/flickr-folder.gemspec
CHANGED