From dcba25a40ed75487a7c84adacbb2c05b69501ae8 Mon Sep 17 00:00:00 2001 From: yolo Date: Tue, 5 May 2020 19:29:01 +0200 Subject: [PATCH] [Issue #601] Add is_business_account and business_category_name properties to Profile structure --- instaloader/structures.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/instaloader/structures.py b/instaloader/structures.py index bd00d80..2cc2a0d 100644 --- a/instaloader/structures.py +++ b/instaloader/structures.py @@ -654,6 +654,14 @@ class Profile: def external_url(self) -> Optional[str]: return self._metadata('external_url') + @property + def is_business_account(self) -> bool: + return self._metadata('is_business_account') + + @property + def business_category_name(self) -> str: + return self._metadata('business_category_name') + @property def biography(self) -> str: return self._metadata('biography')