fbscraper/utils.py
def parseComment(div,
                 postID):
    """routine to parse a comment div
    ---------------------------------
    :param div: comment div
    :param postID: ID of the post of which div is a part
    """
    identifier = f"{postID}_{div.get('id')}"
    return dict(
        author=dict(
            name=re.sub(CLEANR, "", div.div.h3.text),
            url=f"{W3_BASE_URL}{div.div.h3.a['href']}"
        ),
        text=div.div.div.text,
        identifier=identifier,
        replies=[],
        repliesLink=getRepliesLink(div, identifier)
    )
routine to parse a comment div
    ---------------------------------
    :param div: comment div
    :param postID: ID of the post of which div is a part
    
routine to parse a comment div
routine to parse a comment div
def parseComment(div,
                 postID):
    identifier = f"{postID}_{div.get('id')}"
    return dict(
        author=dict(
            name=re.sub(CLEANR, "", div.div.h3.text),
            url=f"{W3_BASE_URL}{div.div.h3.a['href']}"
        ),
        text=div.div.div.text,
        identifier=identifier,
        replies=[],
        repliesLink=getRepliesLink(div, identifier)
    )
def parseComment ( div , postID ) : identifier = f"{postID}_{div.get('id')}" return dict ( author = dict ( name = re . sub ( CLEANR , "" , div . div . h3 . text ) , url = f"{W3_BASE_URL}{div.div.h3.a['href']}" ) , text = div . div . div . text , identifier = identifier , replies = [ ] , repliesLink = getRepliesLink ( div , identifier ) )
routine to parse a comment div
routine to parse a comment div
"""routine to parse a comment div
    ---------------------------------
    :param div: comment div
    :param postID: ID of the post of which div is a part
    """
div
None
postID
ID of the post of which div is a part
ID of the post of which div is a part