import requests
from bs4 import BeautifulSoup
url=requests.get('https://coinmarketcap.com/ko/')
html=url.text
soup=BeautifulSoup(html,'html.parser')
for i in range(1,101):
title=soup.select('#__next > div > div.main-content > div.sc-57oli2-0.dEqHl.cmc-body-wrapper > div > div > div.tableWrapper___3utdq.cmc-table-homepage-wrapper___22rL4 > table > tbody > tr:nth-child('+str(i)+') > td:nth-child(7) > p')
qwer=[]
for item in zip(title):
qwer.append(
{
item[0].text
}
)
print(qwer)
이건데 왜 이게 for i in range(1,101)인데 1부터 10까지만 숫자가 나올까요? ㅜㅜ 1번만 도와주세요 ㅜㅜ
댓글 0