manu-chroma / username-availability-checker

Live at : https://username-check.herokuapp.com/
96 stars 37 forks source link

Avatars: Fetch avatars for websites with taken usernames #42

Closed nalinbhardwaj closed 6 years ago

nalinbhardwaj commented 6 years ago

Adds get_avatar to fetch avatars from all websites. Currently works for everything except Behance. Only works for Facebook if profile == visible(as expected). The function expects the user's page to exist, but handles most errors gracefully even if it doesn't(['pinterest', 'gitlab'] are offenders of this).

Adds appropriate tests, maybe they should be mixed with test_username_check, but I think the repo could use some more breaking down into parts, perhaps this could be a start.

Closes #35

manu-chroma commented 6 years ago

good job @nalinbhardwaj :smile: