Git Product home page Git Product logo

instagram-graph-api-python's Introduction

Instagram-Graph-API (Python)

This Repository Focus on the New Instagram Graph API and Fetches the Input from the CSV file and Writes the data in to CSV file as well.

LIBRARYS NEEDED

1. subprocess
2. argparse
3. os
4. csv
5. requests
6. json

STEPS TO FOLLOW

  1. Create a Facebook App at developers.facebook.com
  2. Go to Graph API Tools to obtain the Access Token (https://developers.facebook.com/tools/explorer/)
  3. Select User Token and Add the following permissions to access the Instagram Graph API instagram_basic instagram_manage_comments instagram_manage_insights pages_read_engagement pages_show_list
  4. Generate the Access Token valid for 1 Hour
  5. Now Copy the Access Token and Enter in defines.py
  6. Copy you Client ID and Client Secret Key from the developers.facebook.com App
  7. Now run the debug_access_token.py file to check the connection to the Graph API
  8. Now run get_long_lived_access_token.py to get access token valid for 60 Days & Enter this in defines.py
  9. Now run get_uer_facebook_pages.py to get the Facebook Page ID & Enter this in defines.py
  10. Now run get_uer_instagram_account.py to get the Instagram Account ID & Enter this in defines.py
  11. Now Enter the Instagram Username you wish to fetch details of in the ig_username.csv file
  12. Now run business_discovery.py to fetch the details of the usernames you entered in the ig_username.csv file
  13. Now open the ig_business.csv newly created and verify for desired results
  14. Now run media_discovery.py to fetch the details of the usernames you entered in the ig_username.csv file
  15. Now open the ig_media.csv newly created and verify for desired results
  16. Now Enter the Instagram Hashtag you wish to fetch Post of in the ig_hashtag_input.csv file
  17. Now run hashtag_discovery_recent_media.py to fetch the details of the usernames you entered in the ig_hashtag_input.csv file
  18. Now open the ig_hashtag_top_media.csv newly created and verify for desired results
  19. Now run hashtag_discovery_top_media.py to fetch the details of the usernames you entered in the ig_hashtag_input.csv file
  20. Now open the ig_hashtag_top_media.csv newly created and verify for desired results

instagram-graph-api-python's People

Contributors

imakashsahu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.