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 | |
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') | |
tweets.add(tweet) | |
with open('tweets.txt', 'w') as out: | |
out.write(str(list(tweets))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment