class InstaScraper::JSON::MediaComment

Attributes

last_comment_id[R]
per_page[R]
shortcode[R]

Public Class Methods

new(shortcode, last_comment_id, per_page = 20) click to toggle source
# File lib/insta_scraper/json/media_comment.rb, line 7
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

Public Instance Methods

url() click to toggle source
# File lib/insta_scraper/json/media_comment.rb, line 14
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