# Metadata push to Bluesky?

**URL:** <https://forum.spinitron.com/t/metadata-push-to-bluesky/1477>\
**Category:** 🌐 Metadata Push\
**Created:** [November 27, 2024, 4:13am UTC](https://forum.spinitron.com/t/metadata-push-to-bluesky/1477 "2024-11-27T04:13:57Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeremy\_B](https://forum.spinitron.com/user_avatar/forum.spinitron.com/jeremy_b/32/1855_2.png) [@Jeremy\_B](https://forum.spinitron.com/u/Jeremy_B)\
**Post date:** [November 27, 2024, 4:13am UTC](https://forum.spinitron.com/t/metadata-push-to-bluesky/1477/1 "2024-11-27T04:13:57Z")

</div>

Hi there! KFAI volunteer here, new to Spinitron’s deeper functions. We’re hoping to use metadata push to post to a Bluesky account. I made a couple of [Bluesky’s sample scripts](https://docs.bsky.app/docs/get-started#create-a-post) work, but even after looking at KFAI’s existing metadata push channels, I’m not clear how to implement this in Spinitron.

The specific part of this that I don’t get is how to send the user/password to authenticate, then parse the token from the object I get back to send the request w/metadata. Is that possible using one of Spinitron’s existing metadata push channels?

---

<div class="post-metadata">

**Author:** ![tom](https://forum.spinitron.com/user_avatar/forum.spinitron.com/tom/32/343_2.png) [@tom](https://forum.spinitron.com/u/tom)\
**Post date:** [November 27, 2024, 6:23pm UTC](https://forum.spinitron.com/t/metadata-push-to-bluesky/1477/2 "2024-11-27T18:23:27Z")

</div>

Hi Jeremy,

I don’t think push from Spinitron to Bluesky is going to work without some special code. Given how social media integration has worked for us in the past I am not enthusiastic about making that code a feature of Spinitron. But it would be pretty easy to do it elsewhere. It would actually be well suited to a server-less function (e.g. AWS Lambda).

Set up an HTTP service to receive an application/x-www-form-urlencoded push from Spinitron and do the API transaction with Bluesky based on that.

Sounds like you might already be halfway there if you have the sample scripts running.

---

<div class="post-metadata">

**Author:** ![tom](https://forum.spinitron.com/user_avatar/forum.spinitron.com/tom/32/343_2.png) [@tom](https://forum.spinitron.com/u/tom)\
**Post date:** [December 6, 2024, 2:06pm UTC](https://forum.spinitron.com/t/metadata-push-to-bluesky/1477/3 "2024-12-06T14:06:31Z")

</div>

Does anyone know how this was implemented?

> **[KALX Playlist (@kalxplaylist.bsky.social)](https://bsky.app/profile/kalxplaylist.bsky.social)**
>
> Playlist Bot for KALX Berkeley https://kalx.berkeley.edu/
> Unofficial, no connection to the station :)
> Made by @dan90mhz.bsky.social

---

<div class="post-metadata">

**Author:** ![Jeremy\_B](https://forum.spinitron.com/user_avatar/forum.spinitron.com/jeremy_b/32/1855_2.png) [@Jeremy\_B](https://forum.spinitron.com/u/Jeremy_B)\
**Post date:** [December 6, 2024, 3:23pm UTC](https://forum.spinitron.com/t/metadata-push-to-bluesky/1477/4 "2024-12-06T15:23:45Z")

</div>

In fact I do know! 🙂 Another KFAI DJ shared that account with me, and I reached out to Dan. He’s scraping info from the Spinitron site every 60 seconds and said he didn’t think to check whether Spinitron had an API.

I have a POC ready to go that accepts a POST request and then uses an atproto client to post to Bluesky. It works great on my laptop! So right now I’m trying to find someone at the station who’s familiar with its web hosting situation–if they’re already deployed on AWS or Google, for instance, I’d like to set this up as a serverless service on the same platform.

---

<div class="post-metadata">

**Author:** ![Jeremy\_B](https://forum.spinitron.com/user_avatar/forum.spinitron.com/jeremy_b/32/1855_2.png) [@Jeremy\_B](https://forum.spinitron.com/u/Jeremy_B)\
**Post date:** [December 6, 2024, 3:25pm UTC](https://forum.spinitron.com/t/metadata-push-to-bluesky/1477/5 "2024-12-06T15:25:45Z")

</div>

This is the account I set up: [@kfaiplaylist.bsky.social on Bluesky](https://bsky.app/profile/kfaiplaylist.bsky.social)

---

<div class="post-metadata">

**Author:** ![tom](https://forum.spinitron.com/user_avatar/forum.spinitron.com/tom/32/343_2.png) [@tom](https://forum.spinitron.com/u/tom)\
**Post date:** [December 7, 2024, 7:59pm UTC](https://forum.spinitron.com/t/metadata-push-to-bluesky/1477/6 "2024-12-07T19:59:14Z")

</div>

Using PUSH from Spinitron is the way to go. I don’t like polling for this kind of thing. And I don’t like page scraping at all.

Tbh I think there’s limited use for this kind of thing. Social media bots can be kind of a pest. Who wants to follow an account that’s posting every few minutes? And is it a convenient way to look up what’s on the radio if you have to locate the account without following it? Idk. It maybe has some value if someone can find the station after doing a music search, but Idk how like that is to work. When we made the software to do it for Twitter back in the day it was mostly a fun gimmick.

---

<div class="post-metadata">

**Author:** ![Jeremy\_B](https://forum.spinitron.com/user_avatar/forum.spinitron.com/jeremy_b/32/1855_2.png) [@Jeremy\_B](https://forum.spinitron.com/u/Jeremy_B)\
**Post date:** [January 21, 2025, 9:17pm UTC](https://forum.spinitron.com/t/metadata-push-to-bluesky/1477/7 "2025-01-21T21:17:51Z")

</div>

Well, I got this working, anyway. 🙃

> **[KFAI On-Air Playlist (@kfaiplaylist.bsky.social)](https://bsky.app/profile/kfaiplaylist.bsky.social)**
>
> This is KFAI's live on-air (HD1) playlist. 📻🎶
> 
> Listen to KFAI at 90.3 FM Minneapolis, and online worldwide at kfai.org. The community's true voice! 📢

Once I connected with the right people this fell together quickly. I learned that KFAI’s site was built using Wordpress, so I translated my Python prototype to PHP, with credentials stored in the Wordpress database.

I’ve been thinking I should document this and maybe check it into Github to share…I’ll update if/when I do that.

---

<div class="post-metadata">

**Author:** ![Jeremy\_B](https://forum.spinitron.com/user_avatar/forum.spinitron.com/jeremy_b/32/1855_2.png) [@Jeremy\_B](https://forum.spinitron.com/u/Jeremy_B)\
**Post date:** [January 28, 2025, 9:48pm UTC](https://forum.spinitron.com/t/metadata-push-to-bluesky/1477/8 "2025-01-28T21:48:58Z")

</div>

> **[GitHub - iamjeremybe/spinitron-to-bluesky: A solution written in PHP (and some prototypes...](https://github.com/iamjeremybe/spinitron-to-bluesky)**
>
> A solution written in PHP (and some prototypes written in Python) that enable Bluesky to be added as a Channel for Spinitron's Metadata Push. The PHP solution also assumes it will be installed on a Wordpress site, with access to the Wordpress database.

Here you are! As I mention in the Readme, the PHP solution that was ultimately adopted is coded to use a Wordpress table to store credentials.

I added a couple of prototypes written in Python to the repo as well. One of them (using Flask) is mostly usable, the other (intended to become an AWS Lambda function) was abandoned halfway through.

I’m available for questions if you’re interested in getting this up and running for your station.
