From aaa30acd9ee67ce98cfa66f4841133284d072ef4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Pires=20Sim=C3=A3o?= Date: Tue, 14 May 2024 16:08:11 -0300 Subject: [PATCH] Add articles return to realtime_trending_searches Returning articles from realtime_trending_searches to enable getting more data --- pytrends/request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytrends/request.py b/pytrends/request.py index c369e885..1171499b 100644 --- a/pytrends/request.py +++ b/pytrends/request.py @@ -533,7 +533,7 @@ def realtime_trending_searches(self, pn='US', cat='all', count =300): )['storySummaries']['trendingStories'] # parse the returned json - wanted_keys = ["entityNames", "title"] + wanted_keys = ["entityNames", "title", "articles"] final_json = [{ key: ts[key] for key in ts.keys() if key in wanted_keys} for ts in req_json ]