|
|
|
@ -25,9 +25,20 @@ def profile_picture_reactions(profile, user, first_user=False, mode="all"): |
|
|
|
|
|
|
|
|
|
|
|
# Gå till sidan för profilbilder |
|
|
|
# Gå till sidan för profilbilder |
|
|
|
profile.open(user.url_photos) |
|
|
|
profile.open(user.url_photos) |
|
|
|
# print(profile.viewing()) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if 'Log in or sign up to view' in profile.viewing() or 'Log in to Facebook to start sharing' in profile.viewing(): |
|
|
|
|
|
|
|
print('INTE INLOGGAD') |
|
|
|
|
|
|
|
profile.login() |
|
|
|
|
|
|
|
profile.open(user.url_photos) |
|
|
|
sleep_(4) |
|
|
|
sleep_(4) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
profile = check_profile_status(profile, user) |
|
|
|
profile = check_profile_status(profile, user) |
|
|
|
|
|
|
|
|
|
|
|
user.name = user.username # Om inte namnet hittas senare |
|
|
|
user.name = user.username # Om inte namnet hittas senare |
|
|
|
|