Class: InstaScraper::HTML

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

Direct Known Subclasses

Account, Media

Defined Under Namespace

Classes: Account, Media

Instance Method Summary collapse

Instance Method Details

#dataObject



7
8
9
10
11
12
# File 'lib/insta_scraper/html.rb', line 7

def data
  @data ||=
    Hashie::Mash.new(::JSON.parse(shared_data))
                .extend(Hashie::Extensions::DeepFetch)
                .extend(Hashie::Extensions::DeepFind)
end

#htmlObject



3
4
5
# File 'lib/insta_scraper/html.rb', line 3

def html
  @html ||= get_html
end