Spaces:
Runtime error
Runtime error
Commit
·
ea241b1
1
Parent(s):
b7ae21f
Update app.py
Browse files
app.py
CHANGED
@@ -55,13 +55,14 @@ def whichsocial(request):
|
|
55 |
website = "ok"
|
56 |
listsocialnetwork = ['facebook', 'youtube', 'myspace', 'linkedin', 'twitter', 'instagram', 'github',
|
57 |
'reddit', 'picterest', 'discord', '']
|
58 |
-
for
|
59 |
-
for
|
60 |
-
|
61 |
-
|
62 |
-
socialnetwork
|
63 |
-
|
64 |
-
|
|
|
65 |
else:
|
66 |
website = "it's not a website link !"
|
67 |
userprofile = 'me'
|
|
|
55 |
website = "ok"
|
56 |
listsocialnetwork = ['facebook', 'youtube', 'myspace', 'linkedin', 'twitter', 'instagram', 'github',
|
57 |
'reddit', 'picterest', 'discord', '']
|
58 |
+
for partsplit in request.split('/'):
|
59 |
+
for part in partsplit:
|
60 |
+
for socialnetwork in listsocialnetwork:
|
61 |
+
print(socialnetwork, part)
|
62 |
+
if socialnetwork == request:
|
63 |
+
socialnetwork = socialnetwork
|
64 |
+
else:
|
65 |
+
socialnetwork = "not found"
|
66 |
else:
|
67 |
website = "it's not a website link !"
|
68 |
userprofile = 'me'
|