Convert an XML feed to a new Mastodon status.

I’ve been greatly enjoying a social media alternative called Mastodon.

For fun I’ve started on a PHP script to convert XML, RSS, and ATOM to a new Mastodon status.  While there are multiple libraries that can do this such as simplepie, it seemed like a good exercise to write one from scratch.

I currently have a test instance running on Ubuntu via the AWS free tier.  It’s a single PHP script run via cron daily.  No database or web server required.  Now when I log into Mastodon to see what the cool kids are doing I can also catch up on my favorite news feeds all in one place.  Similar to how some people use twitter.

When time permits I’ll add more functionality and possibly additional feeds.  Commits and comments welcome.

Source code:  https://github.com/the-sillystring/rss2mastodon

Example on Mastodon:  https://securitymastod.one/@rss2mastodon

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s