Class: InstagramCrawler::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/instagram_crawler.rb

Instance Method Summary collapse

Constructor Details

#initialize(hashtag) ⇒ Client

Returns a new instance of Client.



8
9
10
11
# File 'lib/instagram_crawler.rb', line 8

def initialize(hashtag)
  @hashtag = hashtag
  @crawler = GetHashTagUrl.new(@hashtag)
end

Instance Method Details

#get_image_urls(limit = 1000) ⇒ Object



13
14
15
# File 'lib/instagram_crawler.rb', line 13

def get_image_urls(limit = 1000)
   @crawler.download_hashtag(limit)
end