<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def performSearch(platformNames=[], queries=[], process=False, excludePlatformNames=[]):
 """ Method to perform the search itself on the different platforms. Args: ----- platforms: List of <Platform> objects. queries: List of queries to be performed. Returns: -------- A list with the entities collected. """

    # Grabbing the <Platform> objects
    platforms = platform_selection.getPlatformsByName(platformNames, mode="searchfy", excludePlatformNames=excludePlatformNames)
    results = []
    for q in queries:
        for pla in platforms:
            # This returns a json.txt!
            entities = pla.getInfo(query=q, process = process, mode="searchfy")
            if entities != "[]":
                results += json.loads(entities)
    return results