@app.route('/test') def get_user_list(): cursor = mysql.get_db().cursor() # User Info : followers, followings, last updated time cursor.execute("SELECT * FROM user_list") data = json.dumps(cursor.fetchall()) return data
'Python' 카테고리의 다른 글
python에서 bash 리눅스 명령어 실행 방법 (0) | 2016.12.10 |
---|---|
python 에서 pushover 메시지 어플 사용하기 (0) | 2016.12.06 |
python 활용 instragram api 예제 코드 (0) | 2015.11.15 |
python과 mysql 또는 maraidb 연동 시 설치 방법 (0) | 2015.10.11 |
python과 트위터 연동 시 설치 모듈 (0) | 2015.10.11 |