Skip to content

Log: add Reddit item fullname (ID) to all log entries#26

Closed
DaLuSt wants to merge 1 commit intomainfrom
claude/log-add-item-id-7Wp79
Closed

Log: add Reddit item fullname (ID) to all log entries#26
DaLuSt wants to merge 1 commit intomainfrom
claude/log-add-item-id-7Wp79

Conversation

@DaLuSt
Copy link
Copy Markdown
Owner

@DaLuSt DaLuSt commented Feb 21, 2026

What changed

comment.name / submission.name returns the Reddit fullname (t1_xxx for comments, t3_xxx for posts). Adding it as the second column in both log files lets you:

  • Reconstruct the item URL: https://reddit.com/comments/{id[3:]}/
  • Trace deletion errors back to a specific item
  • De-duplicate entries if a script runs twice

New column order

deleted_comments.txt:  date | id | score | body
deleted_posts.txt:     title, id, date, score, subreddit

Files changed

commentCleaner.py (modes 1/2/3), PostCleaner.py, weekly_cleanup.py, web/app.py

https://claude.ai/code/session_014HLhrFtCVRFnEyfRexiy3d

@DaLuSt DaLuSt force-pushed the claude/log-add-item-id-7Wp79 branch from a199281 to d481b85 Compare February 21, 2026 22:10
Inserts the PRAW fullname (t1_xxx for comments, t3_xxx for posts) into
every log write across commentCleaner.py, PostCleaner.py,
weekly_cleanup.py, and web/app.py. Enables cross-referencing log lines
with the Reddit API without scraping.

https://claude.ai/code/session_014HLhrFtCVRFnEyfRexiy3d
@DaLuSt DaLuSt force-pushed the claude/log-add-item-id-7Wp79 branch from d481b85 to 4d023a9 Compare February 27, 2026 08:57
@DaLuSt
Copy link
Copy Markdown
Owner Author

DaLuSt commented Feb 27, 2026

"Superseded by #33"

@DaLuSt DaLuSt closed this Feb 27, 2026
@DaLuSt DaLuSt deleted the claude/log-add-item-id-7Wp79 branch February 27, 2026 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants