{"id":28938228,"url":"https://github.com/mohammedelahmar/tiktok-agent","last_synced_at":"2025-08-23T14:33:41.542Z","repository":{"id":298769382,"uuid":"1001005667","full_name":"mohammedelahmar/tiktok-agent","owner":"mohammedelahmar","description":"🌟 TikTok Agent - An AI-powered tool that automatically extracts viral-worthy clips from videos and formats them for TikTok. Using engagement modeling, it identifies the most promising segments of content and transforms them into platform-ready vertical videos with options for watermarking, face detection, and custom formatting (crop, blur, or bars","archived":false,"fork":false,"pushed_at":"2025-07-06T20:26:55.000Z","size":5020,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-06T21:34:55.552Z","etag":null,"topics":["ai","automation","cloud-integration","content-creation","content-repurposing","creator-tools","face-detection","machine-learning","productivity","python","social-media","tiktok","video-editing","video-processing","viral-content"],"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/mohammedelahmar.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,"zenodo":null}},"created_at":"2025-06-12T16:56:11.000Z","updated_at":"2025-07-06T20:31:44.000Z","dependencies_parsed_at":"2025-06-12T21:23:55.703Z","dependency_job_id":"6d9d960c-d293-40a3-a53c-85c375d43344","html_url":"https://github.com/mohammedelahmar/tiktok-agent","commit_stats":null,"previous_names":["mohammedelahmar/tiktok-agent"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mohammedelahmar/tiktok-agent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammedelahmar%2Ftiktok-agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammedelahmar%2Ftiktok-agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammedelahmar%2Ftiktok-agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammedelahmar%2Ftiktok-agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mohammedelahmar","download_url":"https://codeload.github.com/mohammedelahmar/tiktok-agent/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammedelahmar%2Ftiktok-agent/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271752117,"owners_count":24814748,"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-08-23T02:00:09.327Z","response_time":69,"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":["ai","automation","cloud-integration","content-creation","content-repurposing","creator-tools","face-detection","machine-learning","productivity","python","social-media","tiktok","video-editing","video-processing","viral-content"],"created_at":"2025-06-22T22:07:56.575Z","updated_at":"2025-08-23T14:33:41.534Z","avatar_url":"https://github.com/mohammedelahmar.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🌟 TikTok Agent\n\nTikTok Agent is an advanced tool for automatically extracting viral-worthy clips from videos and formatting them for TikTok. It uses engagement modeling to identify the most promising segments of your content and transforms them into TikTok-ready videos.\n\n---\n\n## ✨ Features\n\n* **Viral Clip Extraction**: Automatically identifies the most engaging segments of videos\n* **Multiple Clips**: Extract several viral clips from a single video\n* **Video Formatting**: Converts videos to TikTok's 9:16 aspect ratio using:\n\n  * Crop (center focus)\n  * Blur (background blur)\n  * Bars (letterbox)\n* **Watermarking**: Add text or image watermarks to your videos\n* **Multi-source Input**: Process local video files or YouTube videos\n* **Cloud Storage**: Automatically upload processed clips to Google Drive or AWS S3\n* **Face Detection**: Uses advanced face detection to improve framing (OpenCV or MediaPipe)\n* **Performance Optimization**: Parallel processing and optional GPU acceleration\n\n---\n\n## ⚙️ Installation\n\n```bash\n# Clone the repository\ngit clone https://github.com/yourusername/tiktok_agent.git\ncd tiktok_agent\n\n# Install dependencies\npip install -r requirements.txt\n```\n\n---\n\n## 🚀 Usage\n\n### Interactive Mode\n\nFor an easy guided experience:\n\n```bash\npython main.py\n```\n\n### Command Line Interface\n\n**Basic usage:**\n\n```bash\n# Process a local video file\npython main.py --file /path/to/video.mp4\n\n# Process a YouTube video\npython main.py --youtube https://www.youtube.com/watch?v=VIDEO_ID\n```\n\n**Extract multiple clips:**\n\n```bash\npython main.py --file /path/to/video.mp4 --num-clips 3 --duration 15\n```\n\n**Add watermarks:**\n\n```bash\npython main.py --youtube https://www.youtube.com/watch?v=VIDEO_ID --watermark --watermark-text \"@YourTikTokHandle\"\n```\n\n**Upload to cloud:**\n\n```bash\n# Google Drive\npython main.py --file /path/to/video.mp4 --upload-cloud --cloud-provider gdrive\n\n# AWS S3\npython main.py --file /path/to/video.mp4 --upload-cloud --cloud-provider s3\n```\n\n---\n\n## 📁 Configuration\n\nConfigure the tool using:\n\n* Command line arguments\n* Environment variables (prefixed with `TIKTOK_`)\n* The `config.py` file\n\n### Key Options\n\n| Option                  | Description                           | Default        |\n| ----------------------- | ------------------------------------- | -------------- |\n| `OUTPUT_FORMAT`         | Video output format                   | `mp4`          |\n| `DEFAULT_CLIP_DURATION` | Length of extracted clips             | `15.0` seconds |\n| `WATERMARK_ENABLED`     | Enable watermark                      | `False`        |\n| `USE_ENGAGEMENT_MODEL`  | Use ML model for viral clip detection | `True`         |\n| `FACE_DETECTOR`         | Face detection method                 | `mediapipe`    |\n| `CLOUD_STORAGE_ENABLED` | Enable cloud uploads                  | `False`        |\n\n---\n\n## ⚖️ Advanced Features\n\n### Face Detection\n\n```bash\npython main.py --file video.mp4 --face-detector mediapipe\n```\n\n### Performance Optimization\n\n```bash\npython main.py --youtube https://youtu.be/video_id --workers 8 --use-gpu\n```\n\n### Format Options\n\n```bash\npython main.py --file video.mp4 --format blur --watermark\n```\n\n### Cloud Storage Setup\n\n#### Google Drive\n\n1. Create credentials in the Google Cloud Console\n2. Save the credentials file as `credentials.json`\n3. Run with:\n\n```bash\npython main.py --upload-cloud --cloud-provider gdrive\n```\n\n#### AWS S3\n\nConfigure with:\n\n```bash\npython main.py --upload-cloud --cloud-provider s3 --s3-bucket your-bucket --s3-region your-region\n```\n\n---\n\n## 📄 License\n\n**MIT License**\n\n---\n\n## 💪 Contributing\n\nContributions welcome! Please feel free to submit a Pull Request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohammedelahmar%2Ftiktok-agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohammedelahmar%2Ftiktok-agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohammedelahmar%2Ftiktok-agent/lists"}