# BlackboardLoader

> **Class** in `langchain_community`

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

Load a `Blackboard` course.

This loader is not compatible with all Blackboard courses. It is only
compatible with courses that use the new Blackboard interface.
To use this loader, you must have the BbRouter cookie. You can get this
cookie by logging into the course and then copying the value of the
BbRouter cookie from the browser's developer tools.

## Signature

```python
BlackboardLoader(
    self,
    blackboard_course_url: str,
    bbrouter: str,
    load_all_recursively: bool = True,
    basic_auth: Optional[Tuple[str, str]] = None,
    cookies: Optional[dict] = None,
    continue_on_failure: bool = False,
    show_progress: bool = True,
)
```

## Description

**Example:**

.. code-block:: python

from langchain_community.document_loaders import BlackboardLoader

loader = BlackboardLoader(
    blackboard_course_url="https://blackboard.example.com/webapps/blackboard/execute/announcement?method=search&context=course_entry&course_id=_123456_1",
    bbrouter="expires:12345...",
)
documents = loader.load()

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `blackboard_course_url` | `str` | Yes | Blackboard course url. |
| `bbrouter` | `str` | Yes | BbRouter cookie. |
| `load_all_recursively` | `bool` | No | If True, load all documents recursively. (default: `True`) |
| `basic_auth` | `Optional[Tuple[str, str]]` | No | Basic auth credentials. (default: `None`) |
| `cookies` | `Optional[dict]` | No | Cookies. (default: `None`) |
| `continue_on_failure` | `bool` | No | whether to continue loading the sitemap if an error occurs loading a url, emitting a warning instead of raising an exception. Setting this to True makes the loader more robust, but also may result in missing data. Default: False (default: `False`) |
| `show_progress` | `bool` | No | whether to show a progress bar while loading. Default: True (default: `True`) |

## Extends

- `WebBaseLoader`

## Constructors

```python
__init__(
    self,
    blackboard_course_url: str,
    bbrouter: str,
    load_all_recursively: bool = True,
    basic_auth: Optional[Tuple[str, str]] = None,
    cookies: Optional[dict] = None,
    continue_on_failure: bool = False,
    show_progress: bool = True,
)
```

| Name | Type |
|------|------|
| `blackboard_course_url` | `str` |
| `bbrouter` | `str` |
| `load_all_recursively` | `bool` |
| `basic_auth` | `Optional[Tuple[str, str]]` |
| `cookies` | `Optional[dict]` |
| `continue_on_failure` | `bool` |
| `show_progress` | `bool` |


## Properties

- `base_url`
- `load_all_recursively`

## Methods

- [`check_bs4()`](https://reference.langchain.com/python/langchain-community/document_loaders/blackboard/BlackboardLoader/check_bs4)
- [`load()`](https://reference.langchain.com/python/langchain-community/document_loaders/blackboard/BlackboardLoader/load)
- [`download()`](https://reference.langchain.com/python/langchain-community/document_loaders/blackboard/BlackboardLoader/download)
- [`parse_filename()`](https://reference.langchain.com/python/langchain-community/document_loaders/blackboard/BlackboardLoader/parse_filename)

---

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