google-news-trends-mcp 0.1.5__py3-none-any.whl → 0.1.6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- google_news_trends_mcp/server.py +8 -2
- {google_news_trends_mcp-0.1.5.dist-info → google_news_trends_mcp-0.1.6.dist-info}/METADATA +1 -1
- {google_news_trends_mcp-0.1.5.dist-info → google_news_trends_mcp-0.1.6.dist-info}/RECORD +7 -7
- {google_news_trends_mcp-0.1.5.dist-info → google_news_trends_mcp-0.1.6.dist-info}/WHEEL +0 -0
- {google_news_trends_mcp-0.1.5.dist-info → google_news_trends_mcp-0.1.6.dist-info}/entry_points.txt +0 -0
- {google_news_trends_mcp-0.1.5.dist-info → google_news_trends_mcp-0.1.6.dist-info}/licenses/LICENSE +0 -0
- {google_news_trends_mcp-0.1.5.dist-info → google_news_trends_mcp-0.1.6.dist-info}/top_level.txt +0 -0
google_news_trends_mcp/server.py
CHANGED
@@ -246,8 +246,14 @@ async def get_trending_terms(
|
|
246
246
|
trends = await news.get_trending_terms(
|
247
247
|
geo=geo, full_data=full_data, max_results=max_results
|
248
248
|
)
|
249
|
-
|
250
|
-
|
249
|
+
if not full_data:
|
250
|
+
# Only return keyword and volume fields
|
251
|
+
return [
|
252
|
+
TrendingTermOut(keyword=tt["keyword"], volume=tt["volume"]) for tt in trends
|
253
|
+
]
|
254
|
+
else:
|
255
|
+
# Assume each tt is a TrendingTerm object
|
256
|
+
return [TrendingTermOut(**tt.__dict__) for tt in trends]
|
251
257
|
|
252
258
|
def main():
|
253
259
|
mcp.run()
|
@@ -2,10 +2,10 @@ google_news_trends_mcp/__init__.py,sha256=J9O5WNvC9cNDaxecveSUvzLGOXOYO-pCHbiGop
|
|
2
2
|
google_news_trends_mcp/__main__.py,sha256=ysiAk_xpnnW3lrLlzdIQQa71tuGBRT8WocbecBsY2Fs,87
|
3
3
|
google_news_trends_mcp/cli.py,sha256=XJNnRVpDXX2MCb8dPfDcQJWYYA4CxTuxbhvpJGeVQgs,4133
|
4
4
|
google_news_trends_mcp/news.py,sha256=FYz1guxLZThMmh_9uN3VcdHBjLHZF5brhk7Bw7QxeDo,11780
|
5
|
-
google_news_trends_mcp/server.py,sha256=
|
6
|
-
google_news_trends_mcp-0.1.
|
7
|
-
google_news_trends_mcp-0.1.
|
8
|
-
google_news_trends_mcp-0.1.
|
9
|
-
google_news_trends_mcp-0.1.
|
10
|
-
google_news_trends_mcp-0.1.
|
11
|
-
google_news_trends_mcp-0.1.
|
5
|
+
google_news_trends_mcp/server.py,sha256=MdEWk9QVark4z00UlTIckdAM3hPW7eRQgZRZ2h8WUPk,9363
|
6
|
+
google_news_trends_mcp-0.1.6.dist-info/licenses/LICENSE,sha256=5dsv2ZI5EZIer0a9MktVmILVrlp5vqH_0tPIe3bRLgE,1067
|
7
|
+
google_news_trends_mcp-0.1.6.dist-info/METADATA,sha256=HewouWHDlGkCPzEM_Nq7_s2KE66FVvtLLdHYToz9WgE,4580
|
8
|
+
google_news_trends_mcp-0.1.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
9
|
+
google_news_trends_mcp-0.1.6.dist-info/entry_points.txt,sha256=eVT3xd6YJQgsWAUBwhnffuwhXNF7yyt_uco6fjBy-1o,130
|
10
|
+
google_news_trends_mcp-0.1.6.dist-info/top_level.txt,sha256=RFheDbzhNnEV_Y3iFNm7jhRhY1P1wQgfiYqVpXCTD_U,23
|
11
|
+
google_news_trends_mcp-0.1.6.dist-info/RECORD,,
|
File without changes
|
{google_news_trends_mcp-0.1.5.dist-info → google_news_trends_mcp-0.1.6.dist-info}/entry_points.txt
RENAMED
File without changes
|
{google_news_trends_mcp-0.1.5.dist-info → google_news_trends_mcp-0.1.6.dist-info}/licenses/LICENSE
RENAMED
File without changes
|
{google_news_trends_mcp-0.1.5.dist-info → google_news_trends_mcp-0.1.6.dist-info}/top_level.txt
RENAMED
File without changes
|