lib/insta_scraper/html.rb in insta_scraper-0.5.0 vs lib/insta_scraper/html.rb in insta_scraper-0.6.0
- old
+ new
@@ -2,9 +2,16 @@
class HTML
def html
@html ||= get_html
end
+ def data
+ @data ||=
+ Hashie::Mash.new(::JSON.parse(shared_data))
+ .extend(Hashie::Extensions::DeepFetch)
+ .extend(Hashie::Extensions::DeepFind)
+ end
+
protected
def serialize_params
return '' if params.empty?