MCPcopy
hub / github.com/Datalux/Osintgram / check_private_profile

Method check_private_profile

src/Osintgram.py:1161–1170  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1159 return self.api._call_api(endpoint)['user_detail']['user']['friendship_status']['following']
1160
1161 def check_private_profile(self):
1162 if self.is_private and not self.following:
1163 pc.printout("Impossible to execute command: user has private profile\n", pc.RED)
1164 send = input("Do you want send a follow request? [Y/N]: ")
1165 if send.lower() == "y":
1166 self.api.friendships_create(self.target_id)
1167 print("Sent a follow request to target. Use this command after target accepting the request.")
1168
1169 return True
1170 return False
1171
1172 def get_fwersemail(self):
1173 if self.check_private_profile():

Callers 15

get_addrsMethod · 0.95
get_captionsMethod · 0.95
get_total_commentsMethod · 0.95
get_comment_dataMethod · 0.95
get_followersMethod · 0.95
get_followingsMethod · 0.95
get_hashtagsMethod · 0.95
get_total_likesMethod · 0.95
get_media_typeMethod · 0.95
get_people_who_taggedMethod · 0.95
get_photo_descriptionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected