|
|
|
|
@ -166,7 +166,7 @@ def profile_picture_reactions(profile, user, all_pictures, first_user=False, mod |
|
|
|
|
picture.date = profile.viewing().find("abbr").text |
|
|
|
|
except Exception as e: # Fel8 |
|
|
|
|
write_error(8, e=e, soup=profile.viewing(), url=pic, url_name='picture url', user=user.name, traceback=traceback.format_exc()) |
|
|
|
|
# ATT GÖRA Mer info att lägga in? |
|
|
|
|
# TODO lägg till fler bilder som kan gås igenom. |
|
|
|
|
|
|
|
|
|
# Hämta länkar för bilden att userända sen |
|
|
|
|
#print(profile.viewing().prettify()) |
|
|
|
|
@ -192,7 +192,7 @@ def profile_picture_reactions(profile, user, all_pictures, first_user=False, mod |
|
|
|
|
for div in profile.viewing().find_all("div", href=True): |
|
|
|
|
if 'like this' in div.text: |
|
|
|
|
url_reactions = url_bas + str(div["href"]) |
|
|
|
|
|
|
|
|
|
# ISSUE Det är fortfarande inte alla bilder som får en url_reaction |
|
|
|
|
|
|
|
|
|
# Hämta reaktioner för bilden |
|
|
|
|
sleep_(3) |
|
|
|
|
|