Created
October 7, 2013 10:53
-
-
Save NAVNEETOJHA/6865989 to your computer and use it in GitHub Desktop.
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 sqlite | |
import time | |
import datetime | |
conn = sqlite3.connect('tutorial.db') | |
c = conn.cursor() | |
sql = "SELECT * FROM plotting WHERE keyword = ?" | |
wordUsed ='Python Sentiment' | |
def readData(): | |
for row in c.execute(sql, [(wordUsed)]) : | |
print str(row).replace(')','').replace('(','').replace('u\'','').replace("'","") | |
readData() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment