---
description: fetching the background of a Vtuber Fandom page
---

# history()

```python
Vwiki().history(vtuber: str, auto_correct: bool = False)

#or

AioVwiki().history(vtuber: str, auto_correct: bool = False)
```

<details>

<summary>Parameters</summary>

* **vtuber** (_<mark style="color:blue;">str</mark>_) - the vtuber's fandom page to search for
* **auto\_correct** (_<mark style="color:red;">bool</mark>_) - whether or not the `vtuber` query will get auto-corrected (_default: <mark style="color:red;">True</mark>_)

</details>

{% hint style="info" %}
**Note**: it is recommended to turn off `auto`\_`correct` for specific query search
{% endhint %}

<details>

<summary>Returns</summary>

_<mark style="color:orange;">dict</mark>_ - a dictionary containing the year as the key , and the paragraph as the value

</details>

{% hint style="info" %}
**Note**: will returns`{}`if there is no vtuber's history of the page
{% endhint %}

## Use Case

{% tabs %}
{% tab title="Async (non-blocking)" %}
Without `auto_correct` :

```python
from vtuberwiki import AioVwiki
import asyncio

async def get_background():
    async with AioVwiki() as aio_vwiki:
        s = await aio_vwiki.history(vtuber="mythia batford",auto_correct=False)
        print(s) # No wiki results for Vtuber "mythia batford"
        
        # Correct one is "Mythia_Batford"

asyncio.run(get_background()
```

With `auto_correct` :

```python
from vtuberwiki import AioVwiki
import asyncio

async def get_background():
    async with AioVwiki() as aio_vwiki:
        s = await aio_vwiki.history(vtuber="mythia batford",auto_correct=True)
        print(s)
        # {'Background': '\nHer YouTube channel was created on 15 October 2020...'2021': '\nOn 28 Fenruary, Mythia announced ..'2022': '\nOn 19 January, Mythia reached 400,000 subscribers on her YouTube channel....'}
        
        # it gets auto-corrected to "Mythia_Batford"

asyncio.run(get_background()
```
{% endtab %}

{% tab title="Sync (blocking)" %}
Without `auto_correct` :

```python
from vtuberwiki import Vwiki

def get_background():
    vwiki = Vwiki()
    s = vwiki.history(vtuber="mythia batford",auto_correct=False)
    print(s) # No wiki results for Vtuber "mythia batford"
    
    # Correct one is "Mythia_Batford"

get_background()
```

With `auto_correct` :

```python
from vtuberwiki import Vwiki

def get_background():
    vwiki = Vwiki()
    s = vwiki.history(vtuber="mythia batford",auto_correct=True)
    print(s)
    # {'Background': '\nHer YouTube channel was created on 15 October 2020...'2021': '\nOn 28 Fenruary, Mythia announced ..'2022': '\nOn 19 January, Mythia reached 400,000 subscribers on her YouTube channel....'}
    
    # it gets auto-corrected to "Mythia_Batford"

get_background()
```
{% endtab %}
{% endtabs %}
