# WeatherDataLoader

> **Class** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/document_loaders/weather/WeatherDataLoader)

Load weather data with `Open Weather Map` API.

Reads the forecast & current weather of any location using OpenWeatherMap's free
API. Checkout 'https://openweathermap.org/appid' for more on how to generate a free
OpenWeatherMap API.

## Signature

```python
WeatherDataLoader(
    self,
    client: OpenWeatherMapAPIWrapper,
    places: Sequence[str],
)
```

## Extends

- `BaseLoader`

## Constructors

```python
__init__(
    self,
    client: OpenWeatherMapAPIWrapper,
    places: Sequence[str],
) -> None
```

| Name | Type |
|------|------|
| `client` | `OpenWeatherMapAPIWrapper` |
| `places` | `Sequence[str]` |


## Properties

- `client`
- `places`

## Methods

- [`from_params()`](https://reference.langchain.com/python/langchain-community/document_loaders/weather/WeatherDataLoader/from_params)
- [`lazy_load()`](https://reference.langchain.com/python/langchain-community/document_loaders/weather/WeatherDataLoader/lazy_load)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/4b280287bd55b99b44db2dd849f02d66c89534d5/libs/community/langchain_community/document_loaders/weather.py#L14)