summaryrefslogtreecommitdiff
path: root/searx/engines/twitter.py
diff options
context:
space:
mode:
authorta <alt3753.7@gmail.com>2022-08-17 14:30:59 +0700
committerta <alt3753.7@gmail.com>2022-08-17 14:30:59 +0700
commitc8acd4a3b6a664e0080ba6d5aebe0466dce54557 (patch)
treea3ef82ef4a78597461a3f381da2cfcf854bbb245 /searx/engines/twitter.py
parentb6fd7cd571c52924f98e907b529cbc11865aba44 (diff)
downloadsearxng-c8acd4a3b6a664e0080ba6d5aebe0466dce54557.tar.gz
searxng-c8acd4a3b6a664e0080ba6d5aebe0466dce54557.zip
add profile image to user results
Diffstat (limited to 'searx/engines/twitter.py')
-rw-r--r--searx/engines/twitter.py7
1 files changed, 6 insertions, 1 deletions
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