Skip to main content
100%

Google Spreadsheet-generated CSV -> Reddit Flair Python script

✓ Published0🌍 Public
SSimonS
Last edited Dec 21, 2012
Created on Sep 6, 2011

This example automates Reddit flair updates by reading a Google Spreadsheet-generated CSV and applying the results to a subreddit. The Python script uses `csv.DictReader` to parse the CSV data, `urllib2.urlopen` to fetch the file, and a custom `RedditClient` class to log in and call the `flaircsv` API endpoint. It transforms raw rows into flair descriptions and belt colors, batching assignments in groups of 100 to avoid API limits. The script runs continuously in a loop until login succeeds, then prints a final count of modified users.

AI-generated description

Similar vizzes