Update merge to not overwrite scores

This commit is contained in:
Watchful1 2024-03-07 20:41:04 -08:00
parent fe8fef722f
commit ef186b7bd7
4 changed files with 35 additions and 8 deletions

View file

@ -7,9 +7,9 @@ from datetime import datetime
import logging.handlers
# put the path to the input file, or a folder of files to process all of
input_file = r"\\MYCLOUDPR4100\Public\reddit\subreddits\CryptoCurrency_submissions.zst"
input_file = r"\\MYCLOUDPR4100\Public\askreddit_comments_23.zst"
# put the name or path to the output file. The file extension from below will be added automatically. If the input file is a folder, the output will be treated as a folder as well
output_file = r"\\MYCLOUDPR4100\Public\output"
output_file = r"\\MYCLOUDPR4100\Public\askreddit_comments_hero"
# the format to output in, pick from the following options
# zst: same as the input, a zstandard compressed ndjson file. Can be read by the other scripts in the repo
# txt: an ndjson file, which is a text file with a separate json object on each line. Can be opened by any text editor
@ -75,11 +75,11 @@ to_date = datetime.strptime("2025-12-31", "%Y-%m-%d")
# run the script one last time and now you have a file called "filtered_comments.csv" that only has comments from your submissions above
# if you want only top level comments instead of all comments, you can set field to "parent_id" instead of "link_id"
field = "title"
field = "body"
values = ['']
# if you have a long list of values, you can put them in a file and put the filename here. If set this overrides the value list above
# if this list is very large, it could greatly slow down the process
values_file = None
values_file = r"\\MYCLOUDPR4100\Public\askreddit_submissions_ids.txt"
exact_match = False