GithubHelp home page GithubHelp logo

insta's Introduction

Instagram RSS action

A GitHub action that generates an RSS feed from a list of public Instagram accounts.

Note about the Instagram API

This action uses instagram-web-api. The action only requires authentication in the form of your Instagram username and can only fetch posts from public Instagram accounts.

If you see this error: TypeError: Cannot read property 'user' of undefined. Either the Instagram account you entered is invalid or Instragram is ratelimiting your request. If the latter, try reducing your schedule to once or twice a day.

Setup

To create an Instagram RSS feed that updates once a day and automatically commits the feed to your repository:

  1. Make sure your GitHub repository has GitHub Pages enabled. Your feed URL will be whatever your domain is and then instagram.json (Example: https://katydecorah.com/instagram-rss-action/instagram.json). You can also change the feed filename using the fileName option.
  2. Create .github/workflows/instram-rss.yml file using the following template:
name: RSS
on:
  schedule:
    - cron: "0 17 * * *"
  
jobs:
  generate_rss:
    runs-on: macOS-latest
    name: Generate RSS
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: RSS
        id: rss
        uses: katydecorah/[email protected]
        with:
          yourInstagram: YOUR_INSTAGRAM_HERE
          listOfInstagrams: nytcooking,sohlae,swissmiss,soulfirefarm
      - name: Commit files
        if: ${{ success() && steps.rss.outputs.RSS_STATUS == 'success' }}
        run: |
          git config --local user.email "[email protected]"
          git config --local user.name "GitHub Action"
          git add -A && git commit -m "Updated instagram.json"
          git push "https://${GITHUB_ACTOR}:${{secrets.GITHUB_TOKEN}}@github.com/${GITHUB_REPOSITORY}.git" HEAD:${GITHUB_REF}

Options

  • yourInstagram: Required. Your Instagram username. This is required for authentication with the Instagram API.
  • listOfInstagrams: Required. Public Instagram usernames comma delimited.
  • fileName: The name of the JSON feed file name to be written. Default: instagram.json.
  • feedTitle: The title of the RSS feed. This will appear as the title of the feed in your RSS reader. Default: Instagram.
  • pretty: Remove hashtags and emoji from captions. Default: true.

insta's People

Contributors

dhiyo7 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.