Skip to content

Instantly share code, notes, and snippets.

Last active May 22, 2017 22:33
What would you like to do?
import csv
import re
tweets = set()
with open('tweets.csv', 'rb') as csvfile:
reader = csv.reader(csvfile, delimiter=',', quotechar='"')
for row in reader:
tweet = unicode(row[5], 'utf-8')
with open('tweets.txt', 'w') as out:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment