Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 13 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 (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-12-29T16:44:07.000Z (about 1 year ago)
- Last Synced: 2025-01-17T15:09:28.936Z (20 days ago)
- Topics: facebook, information-gathering, information-gathering-tool, open-source-intelligence, osint, osint-tools, python
- Language: Python
- Homepage:
- Size: 29.7 MB
- Stars: 136
- Watchers: 6
- 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!
![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)
#### 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.
[![forthebadge made-with-python](http://ForTheBadge.com/images/badges/made-with-python.svg)](https://www.python.org/)
## Project example : [Totem maltego](https://github.com/megadose/totem-maltego)# Demo
![HD Demo](https://github.com/megadose/gif-demo/raw/master/demo.mp4)
![](https://github.com/megadose/gif-demo/raw/master/demo.gif)## ![hammer_and_wrench](https://github.githubassets.com/images/icons/emoji/unicode/1f6e0.png) 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
```