MCPcopy
hub / github.com/InstaPy/InstaPy / get_comments_count

Function get_comments_count

instapy/comment_util.py:348–352  ·  view source on GitHub ↗

Get the number of total comments in the post

(browser, logger)

Source from the content-addressed store, hash-verified

346
347
348def get_comments_count(browser, logger):
349 """Get the number of total comments in the post"""
350
351 comments_count = getMediaData("edge_media_preview_comment.count", browser)
352 return comments_count, "Success"
353
354
355def verify_commented_image(browser, link, owner, logger):

Callers 1

verify_commentingFunction · 0.85

Calls 1

getMediaDataFunction · 0.85

Tested by

no test coverage detected