Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/barbapapazes/instagram-get-media-comments

Script used to get comments from Instagram posts.
https://github.com/barbapapazes/instagram-get-media-comments

instagram

Last synced: 2 months ago
JSON representation

Script used to get comments from Instagram posts.

Awesome Lists containing this project

README

        

# Instagram Get Media Comments

> Script used to get comments from Instagram posts.

## Install dependencies

```bash
pnpm install --frozen-lockfile
```

## Setup environment variables

```bash
cp .env.example .env
```

You can get the access token using the [Graph Explorer tool](https://developers.facebook.com/tools/explorer/).

### Find the media id

1. Get your Instagram ID through the Meta Business Suite.
2. Get your media ID using `//media` endpoint.
3. Add it to the `.env` file.

And _voilà_!

You can convert the JSON to CSV using [this tool](https://www.convertcsv.com/json-to-csv.htm).

## Usage

```bash
pnpm start
```

## License

[MIT](LICENSE) © [Barbapapazes](https://github.com/Barbapapazes)