mirror of
https://github.com/Watchful1/PushshiftDumps.git
synced 2025-07-04 11:26:41 -04:00
21 lines
558 B
Python
21 lines
558 B
Python
import utils
|
|
import discord_logging
|
|
from datetime import datetime
|
|
|
|
log = discord_logging.init_logging()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
day = None
|
|
day_comments = 0
|
|
for comment in utils.read_obj_zst(r"\\MYCLOUDPR4100\Public\reddit\subreddits23\antiwork_comments.zst"):
|
|
created_day = datetime.utcfromtimestamp(int(comment['created_utc'])).strftime("%y-%m-%d")
|
|
if day is None:
|
|
day = created_day
|
|
if day != created_day:
|
|
log.info(f"{day} {day_comments}")
|
|
day_comments = 0
|
|
day = created_day
|
|
day_comments += 1
|
|
|
|
log.info(f"{day} {day_comments}")
|