Code Monkey home page Code Monkey logo

gramoco-cli's Introduction

Gramoco CLI ๐Ÿ“ธ

Easy interactions with the Instagram Graph API. For Business and Creator Accounts.

Purpose ๐ŸŽฏ

A friend of mine needed help extracting data from his Instagram account. He mainly wanted to get the comments from a post into an Excel file. I thought, why not make a CLI app for this? It could be useful for him and others needing to do the same thing. So, here's what I ended up creating.

Donations ๐Ÿ’ฐ

If you like this project and you want to support it, you can do it through PayPal!

Tech stack ๐Ÿค“

  • Node.js For running JavaScript code
  • Vitest For testing
  • TypeScript For type checking
  • ofetch For making HTTP requests
  • Tsup For bundling
  • Tsx To run TypeScript files
  • Pkg Package your Node.js project into an executable
  • Inquirer.js For interactive command line user interfaces
  • Nanospinner For loading spinners
  • Biome For linting and formatting

Features ๐Ÿš€

  • Extract Instagram posts summary from your account to a Excel file
  • Extract Instagram comments from a post via Media ID to a Excel file (the Media ID can be found in the post information retrieved by the previous action)
  • Do you have any request? Please open an issue!

Download ๐Ÿ“ฅ

You can download the latest version in the releases page for your operating system. In alternative, you can clone this repository and build the project yourself and then install it globally (advanced/developer users).

How to use / Instructions ๐Ÿ“–

In the downloaded zip folder you will find the executable file and a config file gramoco.config.json. In the config file you will need to fill in the following properties: INSTAGRAM_ACCESS_TOKEN and INSTAGRAM_ACCOUNT_ID. You can find the instructions to get these values in the SETUP.md file.

gramoco-cli's People

Contributors

alexmarqs avatar dependabot[bot] avatar

Stargazers

 avatar

Watchers

 avatar

gramoco-cli's Issues

Use streaming to write data to excel

Right now we are keeping the data in memory and then writing it to a file. This is not a good practice for large amounts of data (which may be not the case for most users). We should write the data to a file as soon as we get it from the API using streams. Add some tests to check the performance of the app.

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.