|
|
|
@ -194,8 +194,10 @@ def profile_picture_reactions(profile, user, all_pictures, first=False, single = |
|
|
|
|
|
|
|
|
|
|
|
picture.no_reactions = re.search(r"total_count=(\d+)", url_limit).group(1) |
|
|
|
picture.no_reactions = re.search(r"total_count=(\d+)", url_limit).group(1) |
|
|
|
limit = re.search(r"limit=(\d+)", url_limit).group(1) |
|
|
|
limit = re.search(r"limit=(\d+)", url_limit).group(1) |
|
|
|
except UnboundLocalError: |
|
|
|
except UnboundLocalError: #fel9 |
|
|
|
limit = 999 |
|
|
|
write_error(9, soup=profile.viewing(), traceback=traceback.format_exc()) |
|
|
|
|
|
|
|
# Bilder med väldigt många likes går inte att visa så här? |
|
|
|
|
|
|
|
continue |
|
|
|
|
|
|
|
|
|
|
|
# Addera bilden till arrango |
|
|
|
# Addera bilden till arrango |
|
|
|
picture.add_to_db() |
|
|
|
picture.add_to_db() |
|
|
|
@ -209,6 +211,7 @@ def profile_picture_reactions(profile, user, all_pictures, first=False, single = |
|
|
|
profile.browser.open(url_limit) |
|
|
|
profile.browser.open(url_limit) |
|
|
|
update_cookie(profile.browser.session.cookies, profile.name) |
|
|
|
update_cookie(profile.browser.session.cookies, profile.name) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Gå igenom alla som reagerat och för in i arango |
|
|
|
# Gå igenom alla som reagerat och för in i arango |
|
|
|
for li in profile.viewing().find_all("li"): |
|
|
|
for li in profile.viewing().find_all("li"): |
|
|
|
friend = Friend(user.username) |
|
|
|
friend = Friend(user.username) |
|
|
|
|