Created
March 26, 2013 11:29
-
-
Save daramcq/5244732 to your computer and use it in GitHub Desktop.
Output your tweets into a text file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csv | |
text_file = open('tweet_output.txt','w') | |
cr = csv.reader(open("tweets.csv","rb")) | |
for row in cr: | |
text_file.write(row[5]+" "+row[7]+"\n") | |
text_file.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment