Git Product home page Git Product logo

sma's Introduction

SMA

Social Media Analyser

Facebook Page Information Fetcher

This Python script fetches information about a Facebook Page using the Graph API and outputs the result to output1.json.

Prerequisites

Before running this script, ensure you have the following installed:

  • Python 3.x: Download and Install Python
  • pip (Python package manager): It comes pre-installed with Python.
  • Facebook App: You need to create a Facebook App to obtain the access token.

Installation

  1. Clone or download this repository.
  2. Navigate to the project directory.

Required Packages

Install the required Python packages:

pip install python-dotenv requests

Usage

Create .env file PAGE_ACCESS_TOKEN=your_page_access_token PAGE_ID=your_page_id

How to Run the Script

Make sure you've installed python-dotenv. Fill in your actual access token and page ID in the .env file. Run the script with Python: bash python facebook_page_info.py

Troubleshooting

Missing Variables: Ensure the .env file is in the same directory as the script or the project root. Check that the variables are correctly named and spelled. Dotenv Not Installed: Ensure that python-dotenv is installed by running: bash pip show python-dotenv

sma's People

Contributors

ariffazeel99 avatar

Watchers

 avatar

sma's Issues

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.