[Python/웹 크롤링] '독립일기' 웹툰 화 별로 제목, 별점, 참여자수, 등록일 엑셀로 저장하기
'독립일기' 웹툰 화 별로 제목, 별점, 참여자수, 등록일 엑셀로 저장하기 📌 '독립일기' 웹툰 화 별로 제목, 별점, 참여자수, 등록일 엑셀로 저장하기 import requests from bs4 import BeautifulSoup from tqdm import tqdm f = open("독립일기.csv", "w") f.write("제목,별점,참여자수,등록일\n") for i in tqdm(range(1, 205)): res = requests.get(f"https://comic.naver.com/webtoon/detail?titleId=748105&no={i}&weekday=thu") soup = BeautifulSoup(res.text, "html.parser") title = soup.selec..
2022. 10. 5.