From cb5821905a41c7fac36e3f63a85f234b8c06c55c Mon Sep 17 00:00:00 2001 From: Lasse Date: Sun, 12 Sep 2021 00:12:18 +0200 Subject: [PATCH] Set limit to max 50, better work around? --- facebook/scrapers.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/facebook/scrapers.py b/facebook/scrapers.py index 5260666..750fa1f 100644 --- a/facebook/scrapers.py +++ b/facebook/scrapers.py @@ -281,8 +281,13 @@ def check_picture(url_picture, user, profile): # Addera bilden till arrango picture.add_to_db() + if picture.no_reactions > 50: # TODO Går det här att komma runt? + no_reactions = 50 + else: + no_reactions = picture.no_reactions + url_limit = url_bas + url_limit.replace( - "limit=" + str(limit), "limit=" + str(picture.no_reactions) + "limit=" + str(limit), "limit=" + str(no_reactions) ) try: