related#
- Category.related#
Get the related categories of this category.
- Returns:
A list of related Category objects.
- Return type:
List[Category]
- Raises:
RuntimeError – If the client is not set for this Category.
Example
>>> categories = fred_client.get_category(32073) >>> for category in categories: >>> for related in category.related: >>> print(related.name) 'Arkansas' 'Illinois' 'Indiana' 'Kentucky' 'Mississippi' 'Missouri' 'Tennessee'
Note: This property is meant for simple relational requests, for more complex queries use the client methods directly.