Sha256: 6b84038829956eb52b72d21f1fc37505cef691dcd78a83f396759ba604b60a40

Contents?: true

Size: 751 Bytes

Versions: 4

Compression:

Stored size: 751 Bytes

Contents

module InstaScraper
  class JSON::MediaComment < InstaScraper::JSON
    attr_reader :shortcode,
                :last_comment_id,
                :per_page

    def initialize(shortcode, last_comment_id, per_page = 20)
      warn 'Instagram changed things, this no longer works, use MediaCommentStream'
      @shortcode       = shortcode
      @last_comment_id = last_comment_id
      @per_page        = per_page
    end

    def url
      "https://www.instagram.com/query/?q=ig_shortcode(#{shortcode}){comments.before(#{last_comment_id},#{per_page}){count,nodes{id,created_at,text,user{id,profile_pic_url,username,follows{count},followed_by{count},biography,full_name,media{count},is_private,external_url,is_verified}},page_info}}"
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
insta_scraper-0.8.0 lib/insta_scraper/json/media_comment.rb
insta_scraper-0.7.0 lib/insta_scraper/json/media_comment.rb
insta_scraper-0.6.1 lib/insta_scraper/json/media_comment.rb
insta_scraper-0.6.0 lib/insta_scraper/json/media_comment.rb