import time import random import redis import string r = redis.Redis(host='db.ptt.cx', port=6379, db=1,password='choozmo9') #msg=r.get('webreq_error') msg=r.get('google_error') print(msg)