From 283c05f47cd38b8b2fc039682b6578adc4b7c364 Mon Sep 17 00:00:00 2001 From: Alexander Graf Date: Tue, 26 Jul 2016 13:53:32 +0200 Subject: [PATCH] print warning when public profiles are downloaded when logged in --- instaloader.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/instaloader.py b/instaloader.py index 6f7c578..4b73c61 100755 --- a/instaloader.py +++ b/instaloader.py @@ -230,6 +230,9 @@ def download(name, session, profile_pic_only=False, download_videos=True, raise LoginRequiredException("profile %s requires login" % name) if not data["entry_data"]["ProfilePage"][0]["user"]["followed_by_viewer"]: raise PrivateProfileNotFollowedException("user %s: private but not followed" % name) + else: + if data["config"]["viewer"] is not None: + log("profile %s could also be downloaded anonymously." % name, quiet=quiet) if ("nodes" not in data["entry_data"]["ProfilePage"][0]["user"]["media"] or len(data["entry_data"]["ProfilePage"][0]["user"]["media"]["nodes"]) == 0) \ and not profile_pic_only: