Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Interact with Bluesky Social

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
NotificationsYou must be signed in to change notification settings

christopherkenny/bskyr

Repository files navigation

Lifecycle: stableProject Status: Active – The project has reached a stable, usable state and is being actively developed.Codecov test coverageR-CMD-checkCRAN statusbskyr status badge

bskyr provides an interface to the Bluesky Social API, allowing you tointeract with Bluesky Social from R. To do this, we provide functionswhich match with theAT Protocol’sLexicon, which is like usingregular HTTP requests. Outputs frombskyr’s functions are primarilytibbles, allowing for easy analysis of the outputs from the API calls.

Installation

You can install the stable version ofbskyr fromCRAN with:

install.packages('bskyr')

You can install the development version ofbskyr fromGitHub with:

# install.packages('pak')pak::pak('christopherkenny/bskyr')

Posting withbskyr

First, load the package:

library(bskyr)

Text posts can be made as follows:

bs_post(text='Your text goes here.')

If you have images to include, up to four can be included with theimages argument:

bs_post(text='Your text goes here.',images= c('path/to/image1.jpg','path/to/image2.png'))

Alt text can be added to images with theimages_alt argument:

bs_post(text='Your text goes here.',images= c('path/to/image1.jpg','path/to/image2.png'),images_alt= c('Alt text for image 1','Alt text for image 2'))

To quote or reply to a post, use thequote and/orreply argument,respectively. These can take the link of an existing post. You can quoteand reply to the same post, if you want.

bs_post(text='Your text goes here.',quote='https://bsky.app/profile/chriskenny.bsky.social/post/3kepscxiljc22',reply='https://bsky.app/profile/chriskenny.bsky.social/post/3kepscxiljc22')

See the reference for additional features, including likes withbs_like() and reposts withbs_repost().

Authentication

To authenticate, you first need to make an App Password. To do this, gotohttps://bsky.app/settings. Under “Advanced” click App passwords andthen “Add App Password.”

Once you have a password, you need to run:

set_bluesky_user('YOUR-USERNAME.bsky.social')set_bluesky_pass('your-apps-pass-word')

If you want this to persist across sessions, setinstall = TRUE andr_env = file.path(Sys.getenv('HOME'), '.Renviron'). This will saveyour credentials in your R environment file.

Alternatively, you can set them manually usingusethis::edit_r_environ() and adding lines like so:

BLUESKY_APP_USER='YOUR-USERNAME.bsky.social'BLUESKY_APP_PASS='your-apps-pass-word'

About

Interact with Bluesky Social

Topics

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Contributors5

Languages


[8]ページ先頭

©2009-2025 Movatter.jp