Skip to content

Instantly share code, notes, and snippets.

@andrewheiss
Created September 22, 2023 17:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewheiss/e54a25f9162d868a6a5c846cd7c31c18 to your computer and use it in GitHub Desktop.
Save andrewheiss/e54a25f9162d868a6a5c846cd7c31c18 to your computer and use it in GitHub Desktop.
library(reticulate)
# Run `pip install atproto` in the terminal to instally the Python atproto library
atproto <- import("atproto")
# Create a new empty client
client <- atproto$Client()
# Log into the API
profile <- client$login(Sys.getenv("BSKY_USER"), Sys.getenv("BSKY_PASS"))
# Post something
client$send_post(text = "Posting from #rstats!", langs = list("en")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment