diff --git a/lib/ruby-instagram-scraper.rb b/lib/ruby-instagram-scraper.rb index 404a2af..645d73c 100644 --- a/lib/ruby-instagram-scraper.rb +++ b/lib/ruby-instagram-scraper.rb @@ -35,7 +35,8 @@ def self.get_tag_media_nodes ( tag, max_id = nil ) params = "" params = "&max_id=#{ max_id }" if max_id - JSON.parse( open( "#{url}#{params}" ).read )["tag"]["media"]["nodes"] + # JSON.parse( open( "#{url}#{params}" ).read )["tag"]["media"]["nodes"] + JSON.parse( open( "#{url}#{params}" ).read )["graphql"]["hashtag"]["edge_hashtag_to_media"]["edges"] end def self.get_media ( code )