andrewbanchich / shreddit

Delete your Reddit data.
MIT License
235 stars 10 forks source link

Delete / Edit before not working #91

Open monkeyworknet opened 8 months ago

monkeyworknet commented 8 months ago

Executing the following bash script via cron every day:

`export SHREDDIT_USERNAME=xxx export SHREDDIT_PASSWORD=xxx export SHREDDIT_CLIENT_ID=xxx export SHREDDIT_CLIENT_SECRET=xxx export SHREDDIT_BEFORE=$(date -u -d "40 days ago" +"%Y-%m-%d %H:%M:%S.%N %Z") export SHREDDIT_REPLACEMENT_COMMENT="Content deleted for privacy protection"

/usr/local/shreddit/shreddit-linux `

This has been working for a few months but noticed recently (since about Sept 24th or so) that the script isn't deleting or editing the posts and when run manually not throwing any errors - for example the output is:

` 2023-11-07T18:48:32.008009Z DEBUG Editing... at src/things/comment.rs:94 in edit with self: Comment { id: "xxx", body: "text", permalink: "/r/link", source: Api { score: 2, created_utc: 1695598200.0, can_gild: false } }, config: Config { username: "xxx", password: "xx", client_id: "xxx", client_secret: "xx", dry_run: false, thing_types: [Posts, Comments], before: 2023-09-28T18:47:02.218205717Z, max_score: None, replacement_comment: "Content deleted for privacy protection", user_agent: "ShredditRustClient", gdpr_export_dir: None, edit_only: false }

2023-11-07T18:48:32.206916Z DEBUG Sleeping for 2s to prevent rate limiting. at src/things/mod.rs:31 in edit with self: Comment { id: "xx", body: "text", permalink: "/r/link", source: Api { score: 2, created_utc: 1695598200.0, can_gild: false } }, config: Config { username: "xx", password: "xxx", client_id: "xx", client_secret: "xxx", dry_run: false, thing_types: [Posts, Comments], before: 2023-09-28T18:47:02.218205717Z, max_score: None, replacement_comment: "Content deleted for privacy protection", user_agent: "ShredditRustClient", gdpr_export_dir: None, edit_only: false } `

No error messages that I can see.

fn-ix commented 8 months ago

Not sure if the same issue, but I just ran the script for the first time today to scrub everything going back several years and it successfully deletes a dozen or so entries before seemingly concluding all is done.

  2023-11-07T21:33:14.717144Z DEBUG  Page contained 0 results
    at src/things/comment.rs:302

  2023-11-07T21:33:14.717258Z  INFO  Completed shredding Comments
    at src/main.rs:149

  2023-11-07T21:33:14.717298Z  INFO  Completed shredding [Posts, Comments]
    at src/main.rs:152