Automatic tweeting for the UCB EECS Startup Fair, because let's face it - we are just too lazy. This module tweets from a given csv file or emails a notification saying it's out of tweets.
- Get tweets from EventBrite. Go to the event page > Manage > Event Reports (Under Analyze).
- Click 'Show Columns' and make sure 'Survey Answers' is selected
- Click 'Update Report'
- Export to CSV
- Save the file as 'temp.csv'
- Put this file in the same directory as
tweeper.py
- Run
convert_evnt_brt_to_twts('temp.csv')
- This extracts the tweets and writes to
EventBriteTweets.csv
- This extracts the tweets and writes to
- Copy
EventBriteTweets.csv
totweets.csv
- Here's where you want to add custom tweets and edit the tweets that exist. Tweets are executed top down
- Be sure to follow the format of
Some Tweet Text,False
- Note that tweets should not have commas in them
- Lines ending in False will be queued to tweet while lines ending with True won't be tweeted or have already been tweeted
- Uncomment the last 5 lines (main and name)
- Make sure to comment out the
convert_evnt_brt_to_twts()
line
- Make sure to comment out the
- Set up a crontab to have this run in intervals (Weekly at first, then daily)