{"id":16897085,"url":"https://github.com/megadose/facebook_totem","last_synced_at":"2025-06-20T17:37:32.775Z","repository":{"id":45980679,"uuid":"277863167","full_name":"megadose/facebook_totem","owner":"megadose","description":"Totem allows you to retrieve information about ads of a facebook page , we can retrieve the number of people targeted, how much the ad cost and a lot of other information. ","archived":false,"fork":false,"pushed_at":"2023-12-29T16:44:07.000Z","size":31188,"stargazers_count":144,"open_issues_count":3,"forks_count":20,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-05-25T05:46:16.414Z","etag":null,"topics":["facebook","information-gathering","information-gathering-tool","open-source-intelligence","osint","osint-tools","python"],"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/megadose.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,"publiccode":null,"codemeta":null}},"created_at":"2020-07-07T16:06:57.000Z","updated_at":"2025-04-02T06:53:16.000Z","dependencies_parsed_at":"2024-10-26T21:17:53.283Z","dependency_job_id":"1fe9bb9d-2b8b-43a4-ac42-20f77dc43126","html_url":"https://github.com/megadose/facebook_totem","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/megadose/facebook_totem","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megadose%2Ffacebook_totem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megadose%2Ffacebook_totem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megadose%2Ffacebook_totem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megadose%2Ffacebook_totem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/megadose","download_url":"https://codeload.github.com/megadose/facebook_totem/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megadose%2Ffacebook_totem/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260988908,"owners_count":23093583,"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":["facebook","information-gathering","information-gathering-tool","open-source-intelligence","osint","osint-tools","python"],"created_at":"2024-10-13T17:34:54.893Z","updated_at":"2025-06-20T17:37:27.697Z","avatar_url":"https://github.com/megadose.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Totem\n👋 Hi there! For any professional inquiries or collaborations, please reach out to me at:\nmegadose@protonmail.com\n\n📧 Preferably, use your professional email for correspondence. Let's keep it short and sweet, and all in English!\n\n![PyPI](https://img.shields.io/pypi/v/facebook_totem) ![PyPI - Week](https://img.shields.io/pypi/dw/facebook_totem) ![PyPI - Downloads](https://static.pepy.tech/badge/facebook_totem) ![PyPI - License](https://img.shields.io/pypi/l/facebook_totem)\n#### For BTC Donations : 1FHDM49QfZX6pJmhjLE5tB2K6CaTLMZpXZ\n## Educational purposes only\n\nTotem allows you to retrieve information about ads of a facebook page , we can retrieve the number of people targeted, how much the ad cost and a lot of other information. \n\n[![forthebadge made-with-python](http://ForTheBadge.com/images/badges/made-with-python.svg)](https://www.python.org/)\n## Project example : [Totem maltego](https://github.com/megadose/totem-maltego)\n\n# Demo\n![HD Demo](https://github.com/megadose/gif-demo/raw/master/demo.mp4)\n![](https://github.com/megadose/gif-demo/raw/master/demo.gif)\n\n## ![hammer_and_wrench](https://github.githubassets.com/images/icons/emoji/unicode/1f6e0.png) Installation\n\n### With PyPI\n\n```bash\npip3 install facebook_totem\n```\n\n### With Github\n\n```bash\ngit clone https://github.com/megadose/facebook_totem.git\ncd facebook_totem/\npython3 setup.py install\n```\n\n# Usage of Totem.py \n\npython3 Totem.py [-h] --mode MODE [--url URL] [--urls URLS] [--columns COLUMNS]\n                [--target TARGET] --output OUTPUT\n\n  -h, --help         show the help message and exit  \n  --mode MODE There are different modes:  \n  \n\n​                              \\- single : to get all ads on a page  \n\n​                             \\- multi : to get the ads on different pages  \n\n​                             \\- search : to search a page  \n\n  --url URL          The url of the target page (single mode)  \n  --urls URLS        Csv file with the lists of the target urls (multi mode)  \n  --columns COLUMNS  The name of the column with the urls (multi mode)  \n  --target TARGET    Target name (search mode)  \n  --output OUTPUT    Name of the csv output file ( single and search mode )  \n\nThe output  is in the output folder, for the multi mode the name of the file is the name of the page + id of the page.  \n\n# Usage of facebook_totem with python:\n\n```python\nfrom facebook_totem import *\ngetIdFromUrl(url) #to get a ID of a facebook page from the url of this page the output is the id\ngetFacebookPageFromName(name) #to search facebook page with a name the output is a list of the pages with this name\ngetAdsFromId(id) #to get all ads of a facebook page from the id of this page the output is a list of all ads\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmegadose%2Ffacebook_totem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmegadose%2Ffacebook_totem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmegadose%2Ffacebook_totem/lists"}