SDF Chatter
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
trent@kbin.social to Reddit Migration@kbin.social · 2 years ago

Wrote a script to edit all my posts!

media.kbin.social

message-square
5
fedilink
1

Wrote a script to edit all my posts!

media.kbin.social

trent@kbin.social to Reddit Migration@kbin.social · 2 years ago
message-square
5
fedilink
alert-triangle
You must log in or register to comment.
  • abff08f4813c@kbin.social
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

    Thank you for this! It was super useful, I was able to automate backing up and then editing most of my comments by using this.

    • trent@kbin.socialOP
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      It appears some of my comments were brought back from the edidead by Reddit. Running the script again, but be careful

      • abff08f4813c@kbin.social
        link
        fedilink
        arrow-up
        2
        ·
        2 years ago

        Hey, so I modified your script to print out what it was overwriting. Like literally just these five lines:

        count += 1
        print(f"Comment.id {comment.id}“)
        print(f"Comment.permalink https://www.reddit.com{comment.permalink}”)
        print(f"Comment.body\n{comment.body}“)
        print(f"Count: {count}”)

        I saw something similar, but since I have this extra detail, I was able to determine that the content the script overwrote is staying overwritten. Rather, it’s that Reddit’s API is not returning everything to us. More details at https://kbin.social/m/RedditMigration/t/47320/PSA-If-you-have-more-than-1000-posts-more-than

        TLDR; it may be the case that we’re finding other content too old that got missed by the script rather than reddit undeleting/unediting stuff the script found.

        There’s another script out there on github that uses Pushshfit’s API to get around this, see https://kbin.social/m/RedditMigration/t/47320/PSA-If-you-have-more-than-1000-posts-more-than#entry-comment-202228

        Not sure if that will keep working past June 30, so we need to look into that asap.

        • trent@kbin.socialOP
          link
          fedilink
          arrow-up
          1
          ·
          2 years ago

          awesome, thanks!

          • abff08f4813c@kbin.social
            link
            fedilink
            arrow-up
            1
            ·
            2 years ago

            Update to this, https://kbin.social/m/RedditMigration/t/65260/PSA-Here-s-exactly-what-to-do-if-you-hit-the

Reddit Migration@kbin.social

RedditMigration@kbin.social

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !RedditMigration@kbin.social

### About Community Tracking and helping #redditmigration to Kbin and the Fediverse. Say hello to the decentralized and open future. To see latest reeddit blackout info, see here: https://reddark.untone.uk/

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1 user / day
  • 1 user / week
  • 1 user / month
  • 1 user / 6 months
  • 194 local subscribers
  • 196 subscribers
  • 842 Posts
  • 16.3K Comments
  • Modlog
  • mods:
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org