https://github.com/megadose/facebook_totem
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.
https://github.com/megadose/facebook_totem
facebook information-gathering information-gathering-tool open-source-intelligence osint osint-tools python
Last synced: 25 days ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/megadose/facebook_totem
- Owner: megadose
- Created: 2020-07-07T16:06:57.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-29T16:44:07.000Z (over 1 year ago)
- Last Synced: 2025-03-24T09:39:59.900Z (about 1 month ago)
- Topics: facebook, information-gathering, information-gathering-tool, open-source-intelligence, osint, osint-tools, python
- Language: Python
- Homepage:
- Size: 29.7 MB
- Stars: 143
- Watchers: 5
- Forks: 20
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Totem
👋 Hi there! For any professional inquiries or collaborations, please reach out to me at:
[email protected]📧 Preferably, use your professional email for correspondence. Let's keep it short and sweet, and all in English!
   
#### For BTC Donations : 1FHDM49QfZX6pJmhjLE5tB2K6CaTLMZpXZ
## Educational purposes onlyTotem 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.
[](https://www.python.org/)
## Project example : [Totem maltego](https://github.com/megadose/totem-maltego)# Demo

##  Installation
### With PyPI
```bash
pip3 install facebook_totem
```### With Github
```bash
git clone https://github.com/megadose/facebook_totem.git
cd facebook_totem/
python3 setup.py install
```# Usage of Totem.py
python3 Totem.py [-h] --mode MODE [--url URL] [--urls URLS] [--columns COLUMNS]
[--target TARGET] --output OUTPUT-h, --help show the help message and exit
--mode MODE There are different modes:
​ \- single : to get all ads on a page
​ \- multi : to get the ads on different pages
​ \- search : to search a page
--url URL The url of the target page (single mode)
--urls URLS Csv file with the lists of the target urls (multi mode)
--columns COLUMNS The name of the column with the urls (multi mode)
--target TARGET Target name (search mode)
--output OUTPUT Name of the csv output file ( single and search mode )The 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.
# Usage of facebook_totem with python:
```python
from facebook_totem import *
getIdFromUrl(url) #to get a ID of a facebook page from the url of this page the output is the id
getFacebookPageFromName(name) #to search facebook page with a name the output is a list of the pages with this name
getAdsFromId(id) #to get all ads of a facebook page from the id of this page the output is a list of all ads
```