def CreateTweetDict(tweetInput, whichAPI):
    """
    Given a tweet object, take the relevant items and create custom dict
    """
    tweetDict = {}

    if whichAPI == "twitter":
        tweetDict["id_str"] = int(tweetInput.id_str)
        tweetDict["created_at"] = tweetInput.created_at
        tweetDict["full_text"] = tweetInput.full_text.replace("\n", " ")
        tweetDict["retweet_count"] = int(tweetInput.retweet_count)
    elif whichAPI == "got3":
        tweetDict["id"] = tweetInput.id
        tweetDict["permalink"] = tweetInput.permalink
        tweetDict["username"] = tweetInput.username
        tweetDict["to"] = tweetInput.to
        tweetDict["text"] = tweetInput.text
        tweetDict["date"] = tweetInput.date
        tweetDict["retweets"] = tweetInput.retweets
        tweetDict["favorites"] = tweetInput.favorites
        tweetDict["mentions"] = tweetInput.mentions
        tweetDict["hashtags"] = tweetInput.hashtags
        tweetDict["geo"] = tweetInput.geo

    return tweetDict