From c8acd4a3b6a664e0080ba6d5aebe0466dce54557 Mon Sep 17 00:00:00 2001 From: ta Date: Wed, 17 Aug 2022 14:30:59 +0700 Subject: [PATCH] add profile image to user results --- searx/engines/twitter.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/searx/engines/twitter.py b/searx/engines/twitter.py index 15d92c0e9..b6eef0461 100644 --- a/searx/engines/twitter.py +++ b/searx/engines/twitter.py @@ -62,7 +62,12 @@ def response(resp): for user in json_res['users'].values(): results.append( - {'title': user['name'], 'content': user['description'], 'url': 'https://twitter.com/' + user['screen_name']} + { + 'title': user['name'], + 'content': user['description'], + 'url': 'https://twitter.com/' + user['screen_name'], + 'img_src': user['profile_image_url_https'], + } ) return results