OpenWeatherMap은 오픈소스 날씨 서비스 제공업체입니다
이 loader는 pyowm Python package를 사용하여 OpenWeatherMap의 OneCall API에서 날씨 데이터를 가져옵니다. OpenWeatherMap API token과 날씨 데이터를 가져올 도시 이름으로 loader를 초기화해야 합니다.
from langchain_community.document_loaders import WeatherDataLoader
pip install -qU  pyowm
# Set API key either by passing it in to constructor directly
# or by setting the environment variable "OPENWEATHERMAP_API_KEY".

from getpass import getpass

OPENWEATHERMAP_API_KEY = getpass()
loader = WeatherDataLoader.from_params(
    ["chennai", "vellore"], openweathermap_api_key=OPENWEATHERMAP_API_KEY
)
documents = loader.load()
documents

Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.
I