Testar TODO/ISSUE

pull/5/head
Lasse Edfast 5 years ago
parent b6f79fa620
commit 53962167f7
  1. 4
      facebook/scrapers.py

@ -166,7 +166,7 @@ def profile_picture_reactions(profile, user, all_pictures, first_user=False, mod
picture.date = profile.viewing().find("abbr").text picture.date = profile.viewing().find("abbr").text
except Exception as e: # Fel8 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()) 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 # Hämta länkar för bilden att userända sen
#print(profile.viewing().prettify()) #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): for div in profile.viewing().find_all("div", href=True):
if 'like this' in div.text: if 'like this' in div.text:
url_reactions = url_bas + str(div["href"]) 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 # Hämta reaktioner för bilden
sleep_(3) sleep_(3)

Loading…
Cancel
Save