google-news-trends-mcp 0.1.9__py3-none-any.whl → 0.1.10__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/news.py +0 -18
- {google_news_trends_mcp-0.1.9.dist-info → google_news_trends_mcp-0.1.10.dist-info}/METADATA +1 -1
- google_news_trends_mcp-0.1.10.dist-info/RECORD +11 -0
- google_news_trends_mcp-0.1.9.dist-info/RECORD +0 -11
- {google_news_trends_mcp-0.1.9.dist-info → google_news_trends_mcp-0.1.10.dist-info}/WHEEL +0 -0
- {google_news_trends_mcp-0.1.9.dist-info → google_news_trends_mcp-0.1.10.dist-info}/entry_points.txt +0 -0
- {google_news_trends_mcp-0.1.9.dist-info → google_news_trends_mcp-0.1.10.dist-info}/licenses/LICENSE +0 -0
- {google_news_trends_mcp-0.1.9.dist-info → google_news_trends_mcp-0.1.10.dist-info}/top_level.txt +0 -0
google_news_trends_mcp/news.py
CHANGED
@@ -182,10 +182,6 @@ async def get_news_by_keyword(
|
|
182
182
|
) -> list[newspaper.Article]:
|
183
183
|
"""
|
184
184
|
Find articles by keyword using Google News.
|
185
|
-
keyword: is the search term to find articles.
|
186
|
-
period: is the number of days to look back for articles.
|
187
|
-
max_results: is the maximum number of results to return.
|
188
|
-
nlp: If True, will perform NLP on the articles to extract keywords and summary.
|
189
185
|
"""
|
190
186
|
google_news.period = f"{period}d"
|
191
187
|
google_news.max_results = max_results
|
@@ -204,9 +200,6 @@ async def get_top_news(
|
|
204
200
|
) -> list[newspaper.Article]:
|
205
201
|
"""
|
206
202
|
Get top news stories from Google News.
|
207
|
-
period: is the number of days to look back for top articles.
|
208
|
-
max_results: is the maximum number of results to return.
|
209
|
-
nlp: If True, will perform NLP on the articles to extract keywords and summary.
|
210
203
|
"""
|
211
204
|
google_news.period = f"{period}d"
|
212
205
|
google_news.max_results = max_results
|
@@ -225,10 +218,6 @@ async def get_news_by_location(
|
|
225
218
|
report_progress: Optional[ProgressCallback] = None,
|
226
219
|
) -> list[newspaper.Article]:
|
227
220
|
"""Find articles by location using Google News.
|
228
|
-
location: is the name of city/state/country
|
229
|
-
period: is the number of days to look back for articles.
|
230
|
-
max_results: is the maximum number of results to return.
|
231
|
-
nlp: If True, will perform NLP on the articles to extract keywords and summary.
|
232
221
|
"""
|
233
222
|
google_news.period = f"{period}d"
|
234
223
|
google_news.max_results = max_results
|
@@ -256,9 +245,6 @@ async def get_news_by_topic(
|
|
256
245
|
PUBLIC HEALTH, MENTAL HEALTH, MEDICINE, SPACE, WILDLIFE, ENVIRONMENT, NEUROSCIENCE, PHYSICS,
|
257
246
|
GEOLOGY, PALEONTOLOGY, SOCIAL SCIENCES, EDUCATION, JOBS, ONLINE EDUCATION, HIGHER EDUCATION,
|
258
247
|
VEHICLES, ARTS-DESIGN, BEAUTY, FOOD, TRAVEL, SHOPPING, HOME, OUTDOORS, FASHION.
|
259
|
-
period: is the number of days to look back for articles.
|
260
|
-
max_results: is the maximum number of results to return.
|
261
|
-
nlp: If True, will perform NLP on the articles to extract keywords and summary.
|
262
248
|
"""
|
263
249
|
google_news.period = f"{period}d"
|
264
250
|
google_news.max_results = max_results
|
@@ -288,10 +274,6 @@ async def get_trending_terms(
|
|
288
274
|
) -> list[dict[str, int]] | list[TrendKeyword]:
|
289
275
|
"""
|
290
276
|
Returns google trends for a specific geo location.
|
291
|
-
Default is US.
|
292
|
-
geo: is the country code, e.g. 'US', 'GB', 'IN', etc.
|
293
|
-
full_data: if True, returns full data for each trend, otherwise returns only the trend and volume.
|
294
|
-
max_results: is the maximum number of results to return, default is 100.
|
295
277
|
"""
|
296
278
|
try:
|
297
279
|
trends = list(tr.trending_now(geo=geo))
|
@@ -0,0 +1,11 @@
|
|
1
|
+
google_news_trends_mcp/__init__.py,sha256=NkmudPEEuKk8Geah4EtzeEHQ-ChqR66lZEO5VrMwXNo,77
|
2
|
+
google_news_trends_mcp/__main__.py,sha256=ysiAk_xpnnW3lrLlzdIQQa71tuGBRT8WocbecBsY2Fs,87
|
3
|
+
google_news_trends_mcp/cli.py,sha256=-Cith02x6-9o91rXpgMM0lrhArPDMB9d3h8AAE1rimw,3959
|
4
|
+
google_news_trends_mcp/news.py,sha256=wmFzikDEx_HNVO0vm84gnkgV-LZBOAuW7mNr2uhurEE,11524
|
5
|
+
google_news_trends_mcp/server.py,sha256=h8GP_XUPqiPw4vFu1jy9MFv0i384rBARePvm15YOZJo,14807
|
6
|
+
google_news_trends_mcp-0.1.10.dist-info/licenses/LICENSE,sha256=5dsv2ZI5EZIer0a9MktVmILVrlp5vqH_0tPIe3bRLgE,1067
|
7
|
+
google_news_trends_mcp-0.1.10.dist-info/METADATA,sha256=rbYqd15smnZA0sgOU4Fk6iqvsr8h638U69Ki4VRMddI,4521
|
8
|
+
google_news_trends_mcp-0.1.10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
9
|
+
google_news_trends_mcp-0.1.10.dist-info/entry_points.txt,sha256=eVT3xd6YJQgsWAUBwhnffuwhXNF7yyt_uco6fjBy-1o,130
|
10
|
+
google_news_trends_mcp-0.1.10.dist-info/top_level.txt,sha256=RFheDbzhNnEV_Y3iFNm7jhRhY1P1wQgfiYqVpXCTD_U,23
|
11
|
+
google_news_trends_mcp-0.1.10.dist-info/RECORD,,
|
@@ -1,11 +0,0 @@
|
|
1
|
-
google_news_trends_mcp/__init__.py,sha256=NkmudPEEuKk8Geah4EtzeEHQ-ChqR66lZEO5VrMwXNo,77
|
2
|
-
google_news_trends_mcp/__main__.py,sha256=ysiAk_xpnnW3lrLlzdIQQa71tuGBRT8WocbecBsY2Fs,87
|
3
|
-
google_news_trends_mcp/cli.py,sha256=-Cith02x6-9o91rXpgMM0lrhArPDMB9d3h8AAE1rimw,3959
|
4
|
-
google_news_trends_mcp/news.py,sha256=CpNIOJ4NA-BFmiE0d4Jadn20apMTf8vNDMsqZjFVl6A,12707
|
5
|
-
google_news_trends_mcp/server.py,sha256=h8GP_XUPqiPw4vFu1jy9MFv0i384rBARePvm15YOZJo,14807
|
6
|
-
google_news_trends_mcp-0.1.9.dist-info/licenses/LICENSE,sha256=5dsv2ZI5EZIer0a9MktVmILVrlp5vqH_0tPIe3bRLgE,1067
|
7
|
-
google_news_trends_mcp-0.1.9.dist-info/METADATA,sha256=t76FntOxc0t_CFvzcaWB0lVdXmcv5J9SnLCcIYMwcfY,4520
|
8
|
-
google_news_trends_mcp-0.1.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
9
|
-
google_news_trends_mcp-0.1.9.dist-info/entry_points.txt,sha256=eVT3xd6YJQgsWAUBwhnffuwhXNF7yyt_uco6fjBy-1o,130
|
10
|
-
google_news_trends_mcp-0.1.9.dist-info/top_level.txt,sha256=RFheDbzhNnEV_Y3iFNm7jhRhY1P1wQgfiYqVpXCTD_U,23
|
11
|
-
google_news_trends_mcp-0.1.9.dist-info/RECORD,,
|
File without changes
|
{google_news_trends_mcp-0.1.9.dist-info → google_news_trends_mcp-0.1.10.dist-info}/entry_points.txt
RENAMED
File without changes
|
{google_news_trends_mcp-0.1.9.dist-info → google_news_trends_mcp-0.1.10.dist-info}/licenses/LICENSE
RENAMED
File without changes
|
{google_news_trends_mcp-0.1.9.dist-info → google_news_trends_mcp-0.1.10.dist-info}/top_level.txt
RENAMED
File without changes
|