This code works perfectly:
class MyStreamer(TwythonStreamer):
def on_success(self, data):
txt=json.dumps(data)
#print txt
cur2 = cnx.cursor()
sql="INSERT INTO TWTemp(TWTempTXT,TWTempEstadoCdg) VALUES('"+txt+"',0)"
cur2.execute(sql)
cnx.commit()
self.disconnect()
def on_error(self, status_code, data):
print status_code, data
self.disconnect()
but when line 4 ("print txt") is uncommented, I see the following error:
File "tw.py", line 13
print txt
^
IndentationError: unexpected indent
Somebody help me? Regards Bruno
what is azure
RépondreSupprimerazure trial account
azure data factory
adf interview questions
azure certification path
azure traffic manager
cloudkeeda
cloudkeeda
Mmorpg Oyunlar
RépondreSupprimerinstagram takipçi satın al
tiktok jeton hilesi
tiktok jeton hilesi
Saç ekimi antalya
instagram takipçi satın al
İnstagram takipçi
metin2 pvp serverlar
instagram takipçi satın al
Fon Perde Modelleri
RépondreSupprimerNumara onay
vodafone mobil ödeme bozdurma
Nft nasil alınır
Ankara evden eve nakliyat
Trafik Sigortasi
DEDEKTÖR
WEB SİTESİ KURMA
aşk kitapları