Skip to content

Instantly share code, notes, and snippets.

@NAVNEETOJHA
Created October 7, 2013 10:53
Show Gist options
  • Save NAVNEETOJHA/6865989 to your computer and use it in GitHub Desktop.
Save NAVNEETOJHA/6865989 to your computer and use it in GitHub Desktop.
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