fbscraper/utils.py
def parsePostMetadata(metadata):
    """routine to parse the metadata of the post"""
    return dict(
        time=metadata["dateCreated"],
        text=metadata["articleBody"],
        url=metadata["url"],
        likeCount=metadata["interactionStatistic"][1]["userInteractionCount"],
        commentCount=metadata["commentCount"],
        shareCount=metadata["interactionStatistic"][2]["userInteractionCount"],
        author=metadata["author"],
        identifier=metadata["identifier"],
        comments=[]
    )
routine to parse the metadata of the post
routine to parse the metadata of the post
routine to parse the metadata of the post
def parsePostMetadata(metadata):
    return dict(
        time=metadata["dateCreated"],
        text=metadata["articleBody"],
        url=metadata["url"],
        likeCount=metadata["interactionStatistic"][1]["userInteractionCount"],
        commentCount=metadata["commentCount"],
        shareCount=metadata["interactionStatistic"][2]["userInteractionCount"],
        author=metadata["author"],
        identifier=metadata["identifier"],
        comments=[]
    )
def parsePostMetadata ( metadata ) : return dict ( time = metadata [ "dateCreated" ] , text = metadata [ "articleBody" ] , url = metadata [ "url" ] , likeCount = metadata [ "interactionStatistic" ] [ 1 ] [ "userInteractionCount" ] , commentCount = metadata [ "commentCount" ] , shareCount = metadata [ "interactionStatistic" ] [ 2 ] [ "userInteractionCount" ] , author = metadata [ "author" ] , identifier = metadata [ "identifier" ] , comments = [ ] )
routine to parse the metadata of the post
routine to parse the metadata of the post
"""routine to parse the metadata of the post"""
metadata