Commits

Andy Luong  committed e36fcd0

Remove newlines from tweets

  • Participants
  • Parent commits ba0f7e7

Comments (0)

Files changed (1)

File twitter-graphs/twitterRelationGraphs.py

         tweet_s = (idString + "\t" +
                    str(tweet.GetCreatedAtInSeconds()) + "\t" +
                    geo + "\t" +
-                   tweet.GetText().lower())
+                   tweet.GetText().lower().replace("\r","").replace("\n",""))
 
         outUserTweets.write(tweet_s + "\n")
 
                 tweet_s = (otherID + "\t" +
                            str(tweet.GetCreatedAtInSeconds()) + "\t" +
                            geo + "\t" +
-                           tweet.GetText().lower())
+                           tweet.GetText().lower().replace("\r","").replace("\n",""))
 
                 outTweet.write(tweet_s + "\n")