langchain/libs/community/langchain_community/tools
Julian Castro Pulgarin b7e3e337b1
community: Fix YahooFinanceNewsTool to handle updated yfinance data structure (#29498)
*Description:**
Updates the YahooFinanceNewsTool to handle the current yfinance news
data structure. The tool was failing with a KeyError due to changes in
the yfinance API's response format. This PR updates the code to
correctly extract news URLs from the new structure.

**Issue:** #29495

**Dependencies:** 
No new dependencies required. Works with existing yfinance package.

The changes maintain backwards compatibility while fixing the KeyError
that users were experiencing.

The modified code properly handles the new data structure where:
- News type is now at `content.contentType`
- News URL is now at `content.canonicalUrl.url`

---------

Co-authored-by: Chester Curme <chester.curme@gmail.com>
2025-01-31 02:31:44 +00:00
..
ainetwork all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
amadeus all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
arxiv all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
asknews all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
audio all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
azure_ai_services community: Add configurable VisualFeatures to the AzureAiServicesImageAnalysisTool (#27444) 2024-12-16 18:30:04 +00:00
azure_cognitive_services all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
bearly multiple: pydantic 2 compatibility, v0.3 (#26443) 2024-09-13 14:38:45 -07:00
bing_search all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
brave_search all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
cassandra_database all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
clickup all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
cogniswitch all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
connery all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
databricks [community] Add timeout control and retry for UC tool execution (#26645) 2024-10-09 06:31:48 +00:00
dataforseo_api_search all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
dataherald all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
ddg_search all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
e2b_data_analysis all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
edenai community[patch]: fix errors introduced by pydantic 2.10 (#28297) 2024-11-22 17:50:13 -05:00
eleven_labs all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
few_shot community: Add FewShotSQLTool (#28232) 2024-12-16 15:37:21 +00:00
file_management all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
financial_datasets all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
github community: adds support for getting github releases for the configured repository (#29318) 2025-01-22 15:45:52 +00:00
gitlab community: add method to create branch and list files for gitlab tool (#27883) 2024-12-12 19:11:35 +00:00
gmail community[fix]: could not locate runnable browser (#28289) 2024-12-09 21:05:52 +00:00
golden_query all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
google_cloud all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
google_finance all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
google_jobs all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
google_lens all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
google_places all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
google_scholar all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
google_search all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
google_serper all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
google_trends all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
graphql all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
human all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
interaction infra: update mypy 1.10, ruff 0.5 (#23721) 2024-07-03 10:33:27 -07:00
jina_search all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
jira all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
json all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
memorize all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
merriam_webster all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
metaphor_search all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
mojeek_search all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
multion all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
nasa all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
nuclia all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
office365 community: O365Toolkit - send_event - fixed timezone error (#25876) 2024-12-16 05:32:28 +00:00
openai_dalle_image_generation all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
openapi multiple: pydantic 2 compatibility, v0.3 (#26443) 2024-09-13 14:38:45 -07:00
openweathermap all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
passio_nutrition_ai all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
playwright community[patch]: Fix Playwright Tools bug with Pydantic schemas (#27050) 2024-10-30 23:45:36 +00:00
polygon all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
powerbi all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
pubmed all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
reddit_search all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
requests all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
riza all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
scenexplain all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
searchapi all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
searx_search all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
semanticscholar all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
shell all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
slack community[patch]: fix instantiation for Slack tools (#28990) 2025-01-02 16:14:17 +00:00
sleep all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
spark_sql all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
sql_database community: make old stub for QuerySQLDataBaseTool private to skip api ref (#28711) 2024-12-13 10:43:23 -08:00
stackexchange all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
steam all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
steamship_image_generation all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
tavily_search all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
vectorstore all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
wikidata all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
wikipedia all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
wolfram_alpha all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
you all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
youtube all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
zapier all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
zenguard all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
__init__.py community[patch]: fix QuerySQLDatabaseTool name (#28659) 2024-12-12 19:16:03 -08:00
convert_to_openai.py core[patch], community[patch], openai[patch]: consolidate openai tool… (#16485) 2024-01-25 13:18:46 -08:00
google_books.py Community: Google Books API Tool (#27307) 2024-11-07 15:29:35 -08:00
ifttt.py all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
plugin.py all: test 3.13 ci (#27197) 2024-10-25 12:56:58 -07:00
render.py core[patch], community[patch], openai[patch]: consolidate openai tool… (#16485) 2024-01-25 13:18:46 -08:00
yahoo_finance_news.py community: Fix YahooFinanceNewsTool to handle updated yfinance data structure (#29498) 2025-01-31 02:31:44 +00:00