• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

mcqn/instagram-to-mastodon: A bridge from Instagram to Mastodon

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

mcqn/instagram-to-mastodon

开源软件地址(OpenSource Url):

https://github.com/mcqn/instagram-to-mastodon

开源编程语言(OpenSource Language):

Ruby 100.0%

开源软件介绍(OpenSource Introduction):

Instagram to Mastodon Bridge

This is currently broken (for new installations) because Instagram seems hostile to its users doing anything with their own data. See #4 for more detail.

Alastair found some instructions on setting up Instagram->Mastodon posting using IFTTT which is a better solution (for now, at least).

A simple script to check for new Instagram posts from the authorized account, and copy them across to your Mastodon account.

Set up

  1. Install the dependencies with bundle install (when deploying it rather than developing, you should probably run bundle install --deployment to install the gems locally rather than in the system location)
  2. Register a new Instagram client. Visit https://www.instagram.com/developer/clients/manage/
  3. Click on "Register a new client"
  4. Fill in the form, we'll be staying in sandbox mode, so it's not too important what you enter here. We'll call the client "Mastodon Bridge" so it's easy to remember what we built it for.
  5. Copy the Client ID and Client Secret into the relevant fields of your config.yaml file
  6. Run bundle exec instagram-to-mastodon.rb config.yaml twice, following the instructions to copy the auth_code and then access_token into your configuration.
  7. Follow the steps detailed in our simple posting to Mastodon with Ruby blog post to get the Mastodon bearer_token and copy that into config.yaml too.

Running

Once set up, posting new Instagram photos to Mastodon is merely a case of running bundle exec instagram-to-mastodon.rb config.yaml. You probably want to set up a cron job to run it at regular intervals to pick up new posts as and when they're made.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap