#Week3 (2)

Arielle·2022년 2월 21일
0

DB Connect Setup

from pymongo import MongoClient
client = MongoClient('mongodb+srv://OhSoyun:202201Runway!@cluster0.8ngyi.mongodb.net/Cluster0?retryWrites=true&w=majority')
db = client.dbsparta

Insert a row under a collection named 'users'

In a Dictionary type

find_all()

:False

find_one()

update_one()

delete_one()

Insert Crawled Data into DB


find_one() with a condition clause

find() with a condition clause

update_one()

profile
Entrepreneur

0개의 댓글