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