Skip to Content

Batch downloading twitter avatars

Posted on

At work today I needed to grab over a 1000 twitter avatars using a CSV file containing the usernames. I’ve previously used the twitter gem when I wrote Burnside so I figured that would work here too and I was correct. The following script will download avatars from a CSV of the form “name”,”username”. It handles twitter rate-limiting and can be run multiple times without refetching data.