Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[wip] bluesky importer #1701

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

quinn
Copy link

@quinn quinn commented May 24, 2025

fixes #1694

this imports posts, reposts, likes, and follows. For reposts and likes, it imports the linked post. For follows, it imports the linked profile.

I've used the unauthenticaed endpoints for everything, so no auth is required, just the profile handle you want to import, e.g. bodegacatsofny.bsky.social‬

still to-do:

  • implement pause functionality / concurrency
  • implement repo cursor for incremental imports

@quinn quinn marked this pull request as ready for review May 25, 2025 15:52
@quinn quinn changed the title [draft] bluesky importer [wip] bluesky importer May 25, 2025
Copy link
Collaborator

@radkat radkat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a first pass, do you want to remove all the commented out code? Or if you want to keep it, use it

@quinn quinn force-pushed the bluesky-importer branch from 02e9295 to b5315d8 Compare May 28, 2025 11:34
@quinn
Copy link
Author

quinn commented May 28, 2025

@radkat Hi, I cleaned up the comments and also implemented the incremental loader. Things got a bit complex:

  • revision loads new "commits" into the CAR
  • datastore.go saves those commits as blobs in perkeep
  • node attrs act as KV map for datastore blobs
  • RootCID can be used to query CAR storage for an op log
  • new operations are imported

Bluesky doesn't seem to allow edits, as far as i can tell, from their UI. so I only tested new posts. In theory, edits should be re-imported.

@quinn quinn requested a review from radkat May 28, 2025 11:47
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.

Bluesky importer
2 participants