Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dreikanter/instagram-subscribers-importer
https://github.com/dreikanter/instagram-subscribers-importer
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dreikanter/instagram-subscribers-importer
- Owner: dreikanter
- Created: 2016-09-02T09:16:05.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-02T11:47:23.000Z (over 8 years ago)
- Last Synced: 2024-10-16T08:04:55.313Z (3 months ago)
- Language: Ruby
- Size: 3.91 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Instagram Subscribers Impoprter
``` bash
bundle install
bundle exec ruby bin/import.rb
```## Set up
- Create a new [request bin](https://requestb.in) to be used as redirect URI.
- Register a [new Instagram application](https://www.instagram.com/developer/), and acquire `client id` and `client secret values`.
- Opent this URL in browser:```
https://api.instagram.com/oauth/authorize/?client_id=...&redirect_uri=...&response_type=code&scope=basic+public_content+follower_list
```- Pick the `code` value from the pastebin.
- Execute authorization API call:```
curl -F 'client_id=...' \
-F 'client_secret=...' \
-F 'grant_type=authorization_code' \
-F 'redirect_uri=...' \
-F 'code=...' https://api.instagram.com/oauth/access_token
```- Pick `access_token` value from JSON response.
- Pull followers list:```
https://api.instagram.com/v1/users/self/followed-by?access_token=...
```