반응형 Python61 Genie 음원 사이트 순위 긁기 import urllib.request from bs4 import BeautifulSoup #1~50위 #url="div.newest-list>div>table>tbody>tr.list.rank-1 for rank in chart: print("###### %d위 #####" %(index)) song=rank.find("a", class_="title").get_text()[2:] #song=song.replace("",'') print("곡 명: %s" %(song)) print("가수명: %s" %(rank.find("a",class_="artist").get_text()) ) index+=1 #51위~100위 url="https://genie.co.kr/chart/top200?ditc=D&ymd.. 2021. 5. 24. 이전 1 ··· 13 14 15 16 다음 반응형