<jupyter_start><jupyter_text>제목과 링크 가져오기<jupyter_code>cartoons = soup.find_all('td', attrs={"class":"title"})
title = cartoons[0].a.get_text()
print(title)
link = cartoons[0].a["href"]
print(link)
baseurl = "https://comic.naver.com"
print (baseurl + link)
for cartoon in cartoons:
    title = cartoon.a.get_text()
    link = baseurl + cartoon.a["href"]
    print (title + " " + link)<jupyter_output>250화 상식씨! https://comic.naver.com/webtoon/detail.nhn?titleId=335885&no=252&weekday=mon
249화 이해 https://comic.naver.com/webtoon/detail.nhn?titleId=335885&no=251&weekday=mon
248화 결재타이밍 https://comic.naver.com/webtoon/detail.nhn?titleId=335885&no=250&weekday=mon
247화 남동생 https://comic.naver.com/webtoon/detail.nhn?titleId=335885&no=249&weekday=mon
246화 도시농업 https://comic.naver.com/webtoon/detail.nhn?titleId=335885&no=248&weekday=mon
245화 소개팅 https://comic.naver.com/webtoon/detail.nhn?titleId=335885&no=247&weekday=mon
244화 다이어트식단 https://comic.naver.com/webtoon/detail.nhn?titleId=335885&no=246&weekday=mon
243화 설계 https://comic.naver.com/webtoon/detail.nhn?titleId=335885&no=245&weekday=mon
242화 보릿고개 https://comic.naver.com/webtoon/detail.nhn?titleId=335885&no=244&weekday=mon
241화 용기 https://comic.naver.com/webtoon/detail.nhn?titleId=335885&no=243&weekday=mon<jupyter_text>평점 가져오기<jupyter_code>cartoons = soup.find_all('div', attrs={"class":"rating_type"})
print(cartoons[0])
rate = cartoons[0].strong.get_text()
print(rate)
rate = cartoons[0].find("strong").get_text()
print(rate)
total_rates = 0
for cartoon in cartoons:
    rate = cartoon.strong.get_text()
    print(rate)
    total_rates += float(rate)
print("전체 점수 : ", total_rates)
print("평균 점수 : ", total_rates / len(cartoons))<jupyter_output>전체 점수 :  99.57000000000001
평균 점수 :  9.957
{'fraction_non_alphanumeric': 0.1673352435530086, 'fraction_numerical': 0.0836676217765043, 'mean_word_length': 6.525862068965517, 'pattern_counts': {'":': 2, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 11, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '330513', 'license': 'MIT', 'n_tokens_mistral': 881, 'n_tokens_neox': 848, 'n_words': 90, 'path': 'shared/notebooks/2_web-scraping-I/8_bs4_gauss.ipynb', 'repo_name': 'jungfrau70/docker-sqldb', 'size': '1745'}