{"id":21071196,"url":"https://github.com/andrewdarnall/meta-graph-api","last_synced_at":"2026-01-23T18:33:31.464Z","repository":{"id":174808967,"uuid":"576979589","full_name":"AndrewDarnall/META-Graph-API","owner":"AndrewDarnall","description":"META graph API scraper with tutorial of API usage","archived":false,"fork":false,"pushed_at":"2024-10-14T22:13:52.000Z","size":10373,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-20T21:57:52.550Z","etag":null,"topics":["machine-learning","metaapi","python","scraping","social-network-analysis","unict-dmi-appunti"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AndrewDarnall.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-12-11T15:54:13.000Z","updated_at":"2024-10-14T22:13:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"28bca6c2-4ab3-4ddb-be16-d52f1a671a12","html_url":"https://github.com/AndrewDarnall/META-Graph-API","commit_stats":null,"previous_names":["andrewdarnall/social-media-data-analytics","andrewdarnall/meta-graph-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewDarnall%2FMETA-Graph-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewDarnall%2FMETA-Graph-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewDarnall%2FMETA-Graph-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewDarnall%2FMETA-Graph-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndrewDarnall","download_url":"https://codeload.github.com/AndrewDarnall/META-Graph-API/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243514152,"owners_count":20303077,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["machine-learning","metaapi","python","scraping","social-network-analysis","unict-dmi-appunti"],"created_at":"2024-11-19T18:50:43.844Z","updated_at":"2026-01-23T18:33:31.430Z","avatar_url":"https://github.com/AndrewDarnall.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# META Graph API Scraper\n\nIn the age of Artificial Intelligence and Big Data, social networks represent a valuable source of data, often regarded as a goldmine. This is a key reason why most social media APIs, particularly following the transformative launch of ChatGPT, have been restricted to use by specially authorized individuals.\n\nThis repository contains my Python implementation of a public data scraper for the META Graph API, specifically designed for the Facebook platform. It is limited to accessing data from public Facebook accounts only.\n\nAdditionally, I have conducted a basic sentiment analysis on the collected posts and provided a detailed explanation of the API's functionality in a Jupyter notebook.\n\n------\n\n## Dependencies\n\n| Component | Version |\n------------|----------\n| Python    | `3.9`   |\n| pip       | `24.0`  |\n\n------\n\n## Directory Structure\n\n```bash\n├── facebook_public_scraper\n│   ├── main.py\n│   ├── requirements.txt\n│   ├── scraper.py\n│   └── utils.py\n├── Meta_Graph_API_tutorial\n│   ├── Facebook Graph API tutorial.pdf\n│   ├── META-sentiment-analysis.ipynb\n│   └── README.md\n└── README.md\n```\n\n------\n\n## Usage\n\nClone the repo\n\n```bash\ngit clone https://github.com/AndrewDarnall/META-Graph-API-Scraper.git\ncd META-Graph-API-Scraper\n```\n\nSetup the dependencies\n\n```bash\ncd facebook_scraper\npython -m pip install -r requirements.txt\n```\n\nCreate a target file with a list of \u003ci\u003e\u003cb\u003epublic\u003c/b\u003e\u003c/i\u003e facebook pages, usually you would call it `target.txt`\n\n```bash\ntouch targets.txt\necho \"NintendoAmerica\" \u003e\u003e targets.txt\n```\n\nRun the scraper\n\n```bash\npython main.py targets.txt\n```\n\nOnce finished, the scraper will have created in the current working directory `facebook_public_scraper` a directory, written in \ncapital characters, of each scraped public page. \u003cbr\u003e\nEach directory contains images, text and raw .json of the scraped page's posts","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewdarnall%2Fmeta-graph-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewdarnall%2Fmeta-graph-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewdarnall%2Fmeta-graph-api/lists"}