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 urllib2 | |
import sqlite3 | |
import pip | |
import os | |
import json | |
import pymysql.cursors | |
#inFile: SQL databse filename string (assuming .db) #outFile: JSON filename string | |
def getDataFromDBFile(inFile, outFile): | |
try: | |
conn=sqlite3.connect(inFile) |