<jupyter_start><jupyter_text>2초마다 새로고침<jupyter_code>%load_ext autoreload
%autoreload 2
html = '<html><p>first string</p></html>'
b = bs(html)
b
b.p
type(b), type(b.p)
b.prettify()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.18181818181818182, 'fraction_numerical': 0.009569377990430622, 'mean_word_length': 8.545454545454545, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '289214', 'license': 'Apache-2.0', 'n_tokens_mistral': 107, 'n_tokens_neox': 108, 'n_words': 15, 'path': 'beautifulsoup_01.ipynb', 'repo_name': 'tecktonik08/test_webscraping', 'size': '209'}