python module for Bluesky Social.
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
please note, currently minimum API is defined.
@j3tm0t0 bsky:j3tm0t0.dev