<jupyter_start><jupyter_text>Investigate how to exclude deleted posts<jupyter_code># default_exp deletedposts
# all_local
from steroidsornot.firsttry import PrawClient
reddit = PrawClient().reddit()
posts = {
    'deleted': reddit.submission(url='https://www.reddit.com/r/nattyorjuice/comments/oxsr5t/kenneth_the_ii_is_he_natty_or_juice/'),

    'mod_removed': reddit.submission(url='https://www.reddit.com/r/nattyorjuice/comments/owvbpl/chul_soon/'),

    'normal': reddit.submission(url='https://www.reddit.com/r/nattyorjuice/comments/p17okr/how_long_does_it_take_to_get_this_natty_physique/'),

    'spam_removed': reddit.submission(url='https://www.reddit.com/r/nattyorjuice/comments/oqwkmd/55_230lbs_what_do_we_think/'),
}
vars(posts['deleted'])

vars(posts['mod_removed'])

vars(posts['normal'])

vars(posts['spam_removed'])<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1511627906976744, 'fraction_numerical': 0.009302325581395349, 'mean_word_length': 7.524752475247524, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, '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': '206012', 'license': 'Apache-2.0', 'n_tokens_mistral': 337, 'n_tokens_neox': 341, 'n_words': 28, 'path': '04_deletedposts.ipynb', 'repo_name': 'cedarmora/steroids-or-not', 'size': '860'}