Created
September 22, 2023 17:36
-
-
Save andrewheiss/e54a25f9162d868a6a5c846cd7c31c18 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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