def METHOD_NAME(resp):
    results = []
    raw_search_results = loads(resp.text)
    # return empty array if there are no results
    if not raw_search_results:
        return []
    search_results = raw_search_results.get('channels', [])
    if len(search_results) == 0:
        return []
    for result in search_results[0].get('items', []):
        # parse image results
        if resp.search_params.get('category') == 'images':
            result_url = ''
            if 'url' in result:
                result_url = result['url']
            elif 'link' in result:
                result_url = result['link']
            else:
                continue
            # append result
            results.append(
                {
                    'url': result_url,
                    'title': result['title'],
                    'content': '',
                    'img_src': result['image'],
                    'template': 'images.html',
                }
            )
        # parse general results
        else:
            publishedDate = parser.parse(result['pubDate'])
            # append result
            results.append(
                {
                    'url': result['link'],
                    'title': result['title'],
                    'content': html_to_text(result['description']),
                    'publishedDate': publishedDate,
                }
            )
        # TODO parse video, audio and file results
    return results