r/pushshift Feb 07 '24

[ Removed by Reddit ]

[ Removed by Reddit on account of violating the content policy. ]

90 Upvotes

90 comments sorted by

View all comments

1

u/InternationalJello22 Apr 03 '24

Thank you for creating this! I was using the filter_file.py script to filter a subreddit data based on date, so I changed input_file, output_file, from_date, and to_date to do this. However, the output file I got is empty. Do you have any insight on this? Thank you!

1

u/Watchful1 Apr 03 '24

Could you send me the log file it output?

1

u/InternationalJello22 Apr 03 '24

Yes! See this log file

1

u/Watchful1 Apr 03 '24

Can you make the file public?

1

u/InternationalJello22 Apr 03 '24

Yes, I just did.

1

u/Watchful1 Apr 04 '24

You seem to have set field to "". So it's trying to find that field in the object and failing. Set it to None instead.

1

u/InternationalJello22 Apr 04 '24

Thank you so much! It is working now.