/burusuko

python module for BlueSky social

Primary LanguagePythonApache License 2.0Apache-2.0

burusuko

python module for Bluesky Social.

usage

import os
import burusuko

burusuko.id = os.getenv("HANDLE")
burusuko.app_password = os.getenv("APP_PASSWORD")

print(burusuko.create_record(text="hello burusuko"))

for post in burusuko.get_author_feed(burusuko.id, limit=1):
  record = post["post"]["record"]
  print(record["createdAt"], record["text"])
$ export HANDLE="xxxxxxx@bsky.social"
$ export APP_PASSWORD="xxxxxxxxxxxxxxxx" # create one from Settings > App paswords menu
$ python test.py
{'uri': 'at://did:plc:rw3rpuxdvnlzvaxaewrku77y/app.bsky.feed.post/3jwc7yx6e6e22', 'cid': 'bafyreihx3xb6fpc6tlr5hpuhyuafieuhq4hv4sdaib4rxq4n7n5cktkf24'}
2023-05-22T14:24:52Z hello burusuko

Warning

please note, currently minimum API is defined.

Reference

Copyright

@j3tm0t0 bsky:j3tm0t0.dev