👋 Hi there! For any professional inquiries or collaborations, please reach out to me at: megadose@protonmail.com
📧 Preferably, use your professional email for correspondence. Let's keep it short and sweet, and all in English!
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.
Project example : Totem maltego
pip3 install facebook_totem
git clone https://github.com/megadose/facebook_totem.git
cd facebook_totem/
python3 setup.py install
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.
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