-
Notifications
You must be signed in to change notification settings - Fork 0
/
faceymcface.py
239 lines (209 loc) · 7.51 KB
/
faceymcface.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
from module.academia_edu_face import AcademiaEduFace
from module.arduino_face import ArduinoFace
from module.cups_face import CupsFace
from module.fatsecret_face import FatSecretFace
from module.flipboard_face import FlipboardFace
from module.gag_face import GagFace
from base.result import Result
from module.aboutme_face import AboutMeFace
from module.bitwarden_face import BitwardenFace
from module.facebook_face import FacebookFace
from module.github_face import GithubFace
from module.gravatar_face import GravatarFace
from module.imgur_face import ImgurFace
from module.instagram_face import InstagramFace
from module.instructables_face import InstructablesFace
from module.mastodon_face import MastodonFace
from module.pcpartpicker_face import PcPartPickerFace
from module.skype_face import SkypeFace
from module.brave_face import BraveFace
from module.tiktok_face import TikTokFace
from module.tinder_face import TinderFace
from module.twitter_face import TwitterFace
from module.airbit_face import AirbitFace
import asyncio
from module.youtube_face import YoutubeFace
class FaceyMcFace:
def __init__(self, email_address, username) -> None:
self.email_address = email_address
self.username = username
self.results = []
async def get_gravatar(self):
gravatar = GravatarFace(self.email_address)
result = gravatar.get_image()
if result.status == Result.FOUND:
self.results.append(result.url)
return None
async def get_skype(self):
gravatar = SkypeFace(self.username)
result = gravatar.get_image()
if result.status == Result.FOUND:
self.results.append(result.url)
return None
async def get_aboutme(self):
gravatar = AboutMeFace(self.username)
result = gravatar.get_image()
if result.status == Result.FOUND:
self.results.append(result.url)
return None
async def get_bitwarden(self):
gravatar = BitwardenFace(self.username)
result = gravatar.get_image()
if result.status == Result.FOUND:
self.results.append(result.url)
return None
async def get_github(self):
gravatar = GithubFace(self.username)
result = gravatar.get_image()
if result.status == Result.FOUND:
self.results.append(result.url)
return None
async def get_brave(self):
avatar = BraveFace(self.username)
result = avatar.get_image()
if result.status == Result.FOUND:
self.results.append(result.url)
return None
async def get_twitter(self):
avatar = TwitterFace(self.username)
result = avatar.get_image()
if result.status == Result.FOUND:
self.results.append(result.url)
return None
async def get_facebook(self):
avatar = FacebookFace(self.username)
result = avatar.get_image()
if result.status == Result.FOUND:
self.results.append(result.url)
return None
async def get_instagram(self):
avatar = InstagramFace(self.username)
result = avatar.get_image()
if result.status == Result.FOUND:
self.results.append(result.url)
return None
async def get_imgur(self):
avatar = ImgurFace(self.username)
result = avatar.get_image()
if result.status == Result.FOUND:
self.results.append(result.url)
return None
async def get_tinder(self):
avatar = TinderFace(self.username)
result = avatar.get_image()
if result.status == Result.FOUND:
self.results.append(result.url)
return None
async def get_tiktok(self):
print(f"Attempting to find Tiktok")
avatar = TikTokFace(self.username)
result = avatar.get_image()
if result.status == Result.FOUND:
print(f"FOUND!")
self.results.append(result.url)
return None
async def get_mastodon(self):
print(f"Attempting to find Mastodon")
avatar = MastodonFace(self.username)
result = avatar.get_image()
if result.status == Result.FOUND:
print(f"FOUND!")
self.results.append(result.url)
return None
async def get_youtube(self):
print(f"Attempting to find Youtube data")
avatar = YoutubeFace(self.username)
result = avatar.get_image()
if result.status == Result.FOUND:
print(f"FOUND!")
self.results.append(result.url)
return None
async def get_9gag(self):
gravatar = GagFace(self.username)
result = gravatar.get_image()
if result.status == Result.FOUND:
self.results.append(result.url)
return None
async def get_7cups(self):
gravatar = CupsFace(self.username)
result = gravatar.get_image()
if result.status == Result.FOUND:
self.results.append(result.url)
return None
async def get_academiaedu(self):
gravatar = AcademiaEduFace(self.username)
result = gravatar.get_image()
if result.status == Result.FOUND:
self.results.append(result.url)
return None
async def get_arduino(self):
gravatar = ArduinoFace(self.username)
result = gravatar.get_image()
if result.status == Result.FOUND:
self.results.append(result.url)
return None
async def get_airbit(self):
gravatar = AirbitFace(self.username)
result = gravatar.get_image()
if result.status == Result.FOUND:
self.results.append(result.url)
return None
async def get_fatsecret(self):
print(f"Attempting to find Fatsecret data")
gravatar = FatSecretFace(self.username)
result = gravatar.get_image()
if result.status == Result.FOUND:
self.results.append(result.url)
return None
async def get_flipboard(self):
print(f"Attempting to find Flipboard data")
gravatar = FlipboardFace(self.username)
result = gravatar.get_image()
if result.status == Result.FOUND:
self.results.append(result.url)
return None
async def get_instructables(self):
print(f"Attempting to find Instructables data")
gravatar = InstructablesFace(self.username)
result = gravatar.get_image()
if result.status == Result.FOUND:
self.results.append(result.url)
return None
async def get_pcpartpicker(self):
print(f"Attempting to find Pc Partpicker data")
gravatar = PcPartPickerFace(self.username)
result = gravatar.get_image()
if result.status == Result.FOUND:
self.results.append(result.url)
return None
async def main():
obj = FaceyMcFace(None, "blue")
print(f"Attempting to lookup {obj.username}!")
await asyncio.gather(
obj.get_9gag(),
obj.get_youtube(),
obj.get_mastodon(),
obj.get_tiktok(),
obj.get_tinder(),
obj.get_imgur(),
obj.get_instagram(),
obj.get_facebook(),
obj.get_aboutme(),
obj.get_bitwarden(),
obj.get_twitter(),
obj.get_brave(),
obj.get_github(),
obj.get_skype(),
obj.get_aboutme(),
obj.get_bitwarden(),
obj.get_7cups(),
obj.get_academiaedu(),
obj.get_arduino(),
obj.get_airbit(),
obj.get_fatsecret(),
obj.get_flipboard(),
obj.get_instructables(),
obj.get_pcpartpicker(),
)
print(obj.results)
asyncio.run(main())