I have a TSV file with the following structure:
#DAteTime Userid tweet (each separated by \t)
2009-06-07 02:07:41 http://twitter.com/hokiepokie728 @fabro84 'Before the Storm' is a new song from the Jonas Brothers that is going to be on their new album. miley has a duet with nick on it!
2009-06-07 02:07:42 'http://twitter.com/annieng' is in LA now
How can I import this file into a MySQL table called tweet
with python? I have the following table structure:
1 DT datetime
2 USER varchar(141)
3 TWEET varchar(141)
4 ID bigint(20) AUTO_INCREMENT