{"id":31640000,"url":"https://github.com/jonaylor89/facebook_totem","last_synced_at":"2025-10-07T02:08:57.400Z","repository":{"id":303369026,"uuid":"1015272985","full_name":"jonaylor89/facebook_totem","owner":"jonaylor89","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":"2025-07-07T14:21:19.000Z","size":146,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-16T13:17:47.434Z","etag":null,"topics":["facebook","information-gathering","osint","osint-tools","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/jonaylor89.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null},"funding":{"github":["jonaylor89"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null}},"created_at":"2025-07-07T09:00:17.000Z","updated_at":"2025-07-07T14:18:59.000Z","dependencies_parsed_at":"2025-07-07T09:25:36.141Z","dependency_job_id":null,"html_url":"https://github.com/jonaylor89/facebook_totem","commit_stats":null,"previous_names":["jonaylor89/facebook_totem"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jonaylor89/facebook_totem","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonaylor89%2Ffacebook_totem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonaylor89%2Ffacebook_totem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonaylor89%2Ffacebook_totem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonaylor89%2Ffacebook_totem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonaylor89","download_url":"https://codeload.github.com/jonaylor89/facebook_totem/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonaylor89%2Ffacebook_totem/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278708004,"owners_count":26031932,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","osint","osint-tools","rust"],"created_at":"2025-10-07T02:08:40.116Z","updated_at":"2025-10-07T02:08:57.395Z","avatar_url":"https://github.com/jonaylor89.png","language":"Rust","funding_links":["https://github.com/sponsors/jonaylor89"],"categories":[],"sub_categories":[],"readme":"# Facebook Totem\n\n## Educational purposes only\n\nFacebook Totem allows you to retrieve information about ads of a Facebook page. You can retrieve the number of people targeted, how much the ad cost and a lot of other information.\n\n## Installtion\n\n### Building from Source\n\n```bash\ngit clone https://github.com/jonaylor89/facebook_totem.git\ncd facebook_totem/\ncargo build --release\n```\n\nThe compiled binary will be available at `target/release/facebook_totem`\n\n### Install with Cargo\n\n```bash\ncargo install --path .\n```\n\n# Usage\n\n```bash\nfacebook_totem \u003cCOMMAND\u003e [OPTIONS] --output \u003cOUTPUT\u003e\n\nCommands:\n  single  Get all ads on a single page\n  multi   Get ads on multiple pages from a CSV file\n  search  Search for a page by name\n  help    Print this message or the help of the given subcommand(s)\n\nOptions:\n  -o, --output \u003cOUTPUT\u003e  Name of the CSV output file\n  -h, --help             Print help\n  -V, --version          Print version\n```\n\n## Single Mode - Get ads from a single page\n\n```bash\nfacebook_totem single --url \u003cFACEBOOK_PAGE_URL\u003e --output results.csv\n```\n\n## Multi Mode - Get ads from multiple pages\n\n```bash\nfacebook_totem multi --urls pages.csv --columns url_column --output results.csv\n```\n\n## Search Mode - Search for pages by name\n\n```bash\nfacebook_totem search --target \"Page Name\" --output search_results.csv\n```\n\nThe output is saved in the `output/` folder. For multi mode, each page gets its own file named with the page name and ID.\n\n## Testing\n\nRun the comprehensive test suite:\n\n```bash\ncargo test\n```\n\nThe test suite includes:\n- **Unit tests** for core parsing and CSV writing functions\n- **Integration tests** for CLI commands and workflows\n- **Error handling tests** for edge cases and invalid inputs\n- **Mock data tests** for testing with sample Facebook responses\n\nRun tests with output:\n```bash\ncargo test -- --nocapture\n```\n\nRun specific test modules:\n```bash\ncargo test error_handling_tests\ncargo test integration_with_mocks\n```\n\n---\n\n**Made with 🦀 Rust** | **Original Python version by [megadose](https://github.com/megadose)**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonaylor89%2Ffacebook_totem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonaylor89%2Ffacebook_totem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonaylor89%2Ffacebook_totem/lists"}