I need information on the structure of the webpage to give an accurate answer, but assuming the webpage contains a form with a character and the character's friends, you can modify the above code to print a tree:
```python
from bs4 import BeautifulSoup
import requests

characters = ["Ahzu", "Opijla", "Lisenne"]
URL = "https://www.f-list.net/"

for character in characters:
    character_url = URL + character
    response = requests.get(character_url)
    website = response.text
    soup = BeautifulSoup(website)
    friends_list = soup.find('ul', {"id": "friends-list"}).findChildren()
    print("{character}")
    print("|")
    for friend in friends_list
        print("+- {friend}")
```

This should print a tree of the friends of the character.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence