33def response(resp):
   34    search_res = resp.json()
   35    results = []
   36 
   37    for item in search_res:
   38        img = 'https://s3.thehackerblog.com/findthatmeme/' + item['image_path']
   39        thumb = 'https://s3.thehackerblog.com/findthatmeme/thumb/' + item.get('thumbnail', '')
   40        date = datetime.strptime(item["updated_at"].split("T")[0], "%Y-%m-%d")
   41        formatted_date = datetime.fromtimestamp(date.timestamp())
   42 
   43        results.append(
   44            {
   45                'url': item['source_page_url'],
   46                'title': item['source_site'],
   47                'img_src': img if item['type'] == 'IMAGE' else thumb,
   48                'filesize': humanize_bytes(item['meme_file_size']),
   49                'publishedDate': formatted_date,
   50                'template': 'images.html',
   51            }
   52        )
   53 
   54    return results