I am a newbie to both python and sqlite, hence I need some expert or friendly advice on this. I am trying to capture tweets using Tweepy and store it in a SQLite database. Following is the code
stat = status.text
stat = stat.replace('\n','')
stat = stat.replace('\t','')
user_id = status.user.id_str
stat_id = status.id_str
create = str(status.created_at)
name = status.user.screen_name
data = (create, name, user_id, stat_id, stat)
c.execute("INSERT INTO tweetscapture (Date, ScreenName, UserID, TweetID, Text) values (?, ?, ?, ?, ?)", data)
Can someone please verify if it is vulnerable to SQL injection attack. The only data entry source into my database is twitter.