DRM(2)
-
02. C, 데이터 추가하기 (튜플 추가하기)
Charge 추가하기 @app.route('/') def home(): # data 입력받기 chargeName = request.form['chargeName'] address = request.form['address'] # data, doc form으로 변경 doc = { "username": chargeName, "password": address } #insert try: db.users.insert_one(doc) except Exception as e: print("An exception occureed ::", e) return jsonify({'result ' : 'fail', 'msg' : 'save fail'} return jsonify({'result': 'success'})
2021.09.16 -
01. 더미데이터 만들기
Charge : 전기차 충전소 Review : 각 전기차 충전소에 따른 사용자의 리뷰글 1. Charge 데이터 만들기 https://gist.github.com/IamGroooooot/9e682ad8d800db9a06d86954d0421e4b 네이버 신지도 크롤링 with Selenium and BeautifulSoup 네이버 신지도 크롤링 with Selenium and BeautifulSoup. GitHub Gist: instantly share code, notes, and snippets. gist.github.com 위 코드를 참고하여 pymongo를 연결하고 불러온 주소를 통해 네이버 지도 api를 통하여 x, y 좌표를 불러온다. 생성 코드 # 코알라유니브 스터디: 공공공공공경경 - 고주형..
2021.09.16