search

search is also an interesting function, but it has advantages compared to get_recommendations.

Parameters:

  • query: str - The search query

  • nsfw: bool = False - Determines content type

  • count: int = 20 - Number of results to retrieve

  • cursor: int = 0 - Pagination cursor

  • tags: List[str] = [] - Tags for filtering the search

Example usage with two parameters:

from crushon import Client
client = Client()
for character in client.search("frisk", nsfw=True, cursor=10)["characters"]:
    print(f'[+] {character["id"]}; {character["name"]}; {character["description"].strip()}')

We retrieve 20 characters, and we use the cursor parameter, which causes the count to start from the 10th character.

Last updated