tomosia_icon8_crawl 0.1.1 → 0.1.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c6901044d1fc74224b885ad7749f4ec6cbfccc849c457502fd89b412982e8566
4
- data.tar.gz: '0497897ec31cf80fa201df5e0df5a215d08832b514d5c414a208999f9d4991b2'
3
+ metadata.gz: 2578a3056544b2c996f4bc667c341f0d297a3873f7ccd95f99c71de597fe124f
4
+ data.tar.gz: b07c4616d4a6e077878e7039e131d5ae70a1933eb3c8f45500324621d58b8f41
5
5
  SHA512:
6
- metadata.gz: 0ce761a7d5828b96209f46fc06c0ae14a387277ed6e0de8af41635067d5d05d0df3e6b594dd881666c44374c050dd46b8f6936a91c0dbbf5896f52ab8dfc08eb
7
- data.tar.gz: fa943501f9f1e6e69945bd19e1a982100d6f501e077a92b9b8d19d39e7d5727afa78106ec656524e053782e876f52bd9c02186f44cd846d6f8b5f9c943df4aa0
6
+ metadata.gz: 074a677795357e32188a3a2894b3e8f703589746045e3138634017e28da62462d8f8777df5054dfd81bad230bd3c25ca274b4a06583ff6bd74740621e03bc95e
7
+ data.tar.gz: 68ec41c66819afd2b7559603aac3b738d302501074860792b4509855f57bab4aa902088cfc475ff35b382e7426f6a9c330965692fd43962fc2ec0021b6670906
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tomosia_icon8_crawl (0.1.1)
4
+ tomosia_icon8_crawl (0.1.2)
5
5
  httparty
6
6
  nokogiri
7
7
  pry
data/README.md CHANGED
@@ -22,7 +22,28 @@ Or install it yourself as:
22
22
 
23
23
  ## Usage
24
24
 
25
- TODO: Write usage instructions here
25
+ Commandline or Terminal:
26
+ Download all photos including pages from icon8.com with keyword you search
27
+ $ tomosia_icon8_crawl crawl "keyword" --destination="storage path"
28
+ Download pictures with number you want to get from icon8.com with keyword to find
29
+ $ tomosia_icon8_crawl crawl "keyword" --destination="storage path" --max=number
30
+ Developers:
31
+ Gemfile:
32
+ $ gem 'tomosia_icon8_crawl'
33
+ Require:
34
+ $ require 'tomosia_icon8_crawl'
35
+ Download all photos including pages from icon8.com with keyword you search
36
+ $ TomosiaIcon8Crawl::CrawlIcon8.crawl("keyword", "destination")
37
+ Download pictures with number you want to get from icon8.com with keyword to find
38
+ $ TomosiaIcon8Crawl::CrawlIcon8.crawl("keyword", "destination", max)
39
+ Help:
40
+ - keyword is the word used for searching.
41
+ ex: corona, car, virus,...
42
+ - destination is the path of the directory where the image was downloaded.
43
+ ex: E:\download, C:\download, C:\Desktop,...
44
+ - max max is the number of images you want to download.
45
+ ex: 100, 10, 5, 1000,...
46
+
26
47
 
27
48
  ## Development
28
49
 
@@ -8,7 +8,7 @@ module TomosiaIcon8Crawl
8
8
  option :destination
9
9
  option :max
10
10
  def crawl(keyword)
11
- TomosiaIcon8Crawl::CrawlIcon8.crawl(keyword, options[:destination], options[:max].to_i)
11
+ TomosiaIcon8Crawl::CrawlIcon8.crawl(keyword, options[:destination], options[:max])
12
12
  end
13
13
  end
14
14
  end
@@ -1,3 +1,3 @@
1
1
  module TomosiaIcon8Crawl
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tomosia_icon8_crawl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ninh-tomosia