
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
여기서 이 부분이 물결 처리 되는데 왜 그런건가요

from pymongo import MongoClient
import requests
from bs4 import BeautifulSoup
client = MongoClient(
"mongodb+srv://sparta:test@cluster0.mzxpeul.mongodb.net/?retryWrites=true&w=majority",
tlsCAFile=ca,
)
db = client.dbsparta
URL = "https://movie.daum.net/ranking/boxoffice/yearly?date=2010"
headers = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64)AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36"
}
data = requests.get(URL, headers=headers)
soup = BeautifulSoup(data.text, "html.parser")
lis = soup.select(".list_movieranking > li")
for li in lis:
rank = li.select_one(".rank_num").text
age = li.select_one(".ico_see").text
title = li.select_one(".link_txt").text
print(rank, title, age)
doc = {"rank": rank, "title": title, "age": age}
db.movies2.insert_one(doc)
