Exemplo n.º 1
0
def get_commenters_of_post(client: ApiClient, media_id: str) -> List[dict]:
    """Get users that commented on a post.

    Args:
        client: your `ApiClient`
        media_id: the post to retrieve the commenters from

    Returns:
        A list of Instagram user objects (objects/post.json).
    """
    logger.info(f"Getting commenters of {media_id}")
    return client.post_get_commenters(RetrieveCommenters(media_id))
Exemplo n.º 2
0
import os
from instauto.api.client import ApiClient
import instauto.api.actions.post as ps

if __name__ == '__main__':
    if os.path.isfile('./.instauto.save'):
        client = ApiClient.initiate_from_file('./.instauto.save')
    else:
        client = ApiClient(user_name=os.environ.get("INSTAUTO_USER")
                           or "username",
                           password=os.environ.get("INSTAUTO_PASS")
                           or "password")
        client.login()
        client.save_to_disk('./.instauto.save')

    p = ps.RetrieveCommenters
    client.post_get_commenters('1770154859660826272')
Exemplo n.º 3
0
def get_commenters_of_post(client: ApiClient, media_id: str) -> List[dict]:
    logger.info(f"Getting commenters of {media_id}")
    return client.post_get_commenters(RetrieveCommenters(media_id))
Exemplo n.º 4
0
def get_commenters_of_post(client: ApiClient, media_id: str) -> List[dict]:
    return client.post_get_commenters(media_id)