
지니뮤직 차트 노래 제목을 크롤링 하는 과정에서 19금 노래때문에 공백이 무진장 많이 나와요.
19금 노래는 'span'클래스 하나가 더 있어서 그런거 같은데 이것만 제외하고 크롤링 하는 방법 알려주세요

작성한 코드 및 에러 메세지ts
from bs4 import BeautifulSoup
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('https://www.genie.co.kr/chart/top200?ditc=M&rtm=N&ymd=20210701',headers=headers)
soup = BeautifulSoup(data.text, 'html.parser')
#body-content > div.newest-list > div > table > tbody > tr:nth-child(2) > td.number
geniemusic = soup.select('#body-content > div.newest-list > div > table > tbody > tr')
for genie in geniemusic:
rank = genie.select_one('td.number').text[0:2].strip()
title = genie.select_one('td.info > a.title.ellipsis').text.strip()
artist = genie.select_one('td.info > a.artist.ellipsis').text
print(title)
.find('span').decompose() 인가 해봤는데 계속 오류떠서 잘 모르겠네요..
