Skip to content

Commit

Permalink
Added "resolve socials" action for "resolve" command.
Browse files Browse the repository at this point in the history
  • Loading branch information
noahzeisberg committed May 20, 2023
1 parent 5fdf406 commit 3ab3699
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
from pytube import YouTube

init(convert=True)
CURRENT_FYUTILS_VERSION = "1.9.1"
CURRENT_FYUTILS_VERSION = "1.9.2"
SUPPORTED_FUEL_VERSION = 1


Expand Down Expand Up @@ -606,6 +606,34 @@ def menu():
print(prefix() + "Location: " + location)
print(prefix() + "Carrier: " + carrier)
print(prefix() + "Timezone: " + str(zone))
elif action == "socials":
found_accounts = []
social_account_sites = [
{"url": "https://www.facebook.com/{}", "name": "Facebook"},
{"url": "https://www.twitter.com/{}", "name": "Twitter"},
{"url": "https://www.instagram.com/{}", "name": "Instagram"},
{"url": "https://www.reddit.com/user/{}", "name": "Reddit"},
{"url": "https://www.linkedin.com/in/{}", "name": "LinkedIn"},
{"url": "https://www.github.com/{}", "name": "GitHub"},
{"url": "https://www.pinterest.com/{}", "name": "Pinterest"},
{"url": "https://www.tumblr.com/{}", "name": "Tumblr"},
{"url": "https://www.youtube.com/{}", "name": "Youtube"},
{"url": "https://soundcloud.com/{}", "name": "SoundCloud"},
{"url": "https://www.snapchat.com/add/{}", "name": "Snapchat"},
{"url": "https://www.tiktok.com/@{}", "name": "TikTok"},
{"url": "https://www.medium.com/@{}", "name": "Medium"},
{"url": "https://www.quora.com/profile/{}", "name": "Quora"},
{"url": "https://www.twitch.tv/{}", "name": "Twitch"},
{"url": "https://www.telegram.me/{}", "name": "Telegram"}
]
for site in social_account_sites:
url = site["url"].format(target)
response = requests.get(url)
if response.status_code == 200:
print(prefix() + target + "'s " + site["name"] + "-Account: " + site["url"].format(target))
else:
print(prefix("WARN") + "This person has no " + site["name"] + " account!")

else:
print(prefix("ERROR") + "Action is not supported!")

Expand Down

0 comments on commit 3ab3699

Please sign in to comment.