In my current job, I needed to find some avatars for a bunch of web pages, but bigger than FavIcon size. I was at a loss until I remembered that Facebook has avatars in a whole bunch of sizes available by API. I decided to write a Python app using the OpenGraph API.

Pass the script a text file containing tab-seperated values of the website name and domain, and it will do a search for the name, and download the avatar with a name as www_domain_com.png

The code uses the FQDN as a "unique identifier" so when running the script multiple times, you won't generate too many API calls. Also, I throttle the application using time.sleep(). This script saved me a lot of time, and now I only have to sort out bad matches and missing domains.