def get_tweet_object_from_tweet_js(seq, num_of_tweet_block):
    """
    Helper method to get each smaller tweet blocks. 
    Tested May 2020 on tweet.js (subject to change as Twitter rolls out new data layout)
    
    Parameters:
        seq: (file object) opens a file in read mode.
        num_of_tweet_block: (int) number of parsed tweet objects to return.
            Note: if num_of_tweet_block > total line in the file, the function will return with maximum # of blocks extracted from the file.
            Therefore, it is possible to have returned tweets fewer than the requested block.

    Return: a list with number of requested tweets in it.
    """

    data = ""
    res = []
    curr = 0
    start_flag = False
    
    for line in seq:
        line = line.rstrip()
        
        if "\"tweet\"" in line:
            start_flag = True
        if line != "}, {" and start_flag:
            if 'full_text' in line:
                line = line.replace('full_text', 'text')
            data += line
        if line == "}, {":
            start_flag = False
            curr += 1
            # remove the extra "tweet" in front
            res.append(data.split("\"tweet\" : ")[1])
            data = ""
            if curr >= num_of_tweet_block:
                return res
    
    return res