{"name":"TeleGraphite: Fast and Reliable Telegram Channel Scraper","description":"TeleGraphite is a powerful Python tool designed for scraping public Telegram channels efficiently. It allows users to fetch posts, download media, and export all data into structured JSON files. This makes it an ideal solution for data collection, analysis, and archiving Telegram channel content.","github":"https://github.com/hamodywe/telegram-scraper-TeleGraphite","url":"https://osrepos.com/repo/hamodywe-telegram-scraper-telegraphite","source":"osrepos.com","sourceDescription":"This repository profile is provided by osrepos.com, an open source repository discovery platform.","repositoryProfile":"https://osrepos.com/repo/hamodywe-telegram-scraper-telegraphite","generatedFor":"open source discovery and AI-assisted research","markdown":"https://osrepos.com/repo/hamodywe-telegram-scraper-telegraphite.md","json":"https://osrepos.com/repo/hamodywe-telegram-scraper-telegraphite.json","topics":["Python","Telegram","Scraper","Data Scraping","Channel Scraper","JSON Export","Social Media Tools"],"keywords":["Python","Telegram","Scraper","Data Scraping","Channel Scraper","JSON Export","Social Media Tools"],"stars":null,"summary":"TeleGraphite is a powerful Python tool designed for scraping public Telegram channels efficiently. It allows users to fetch posts, download media, and export all data into structured JSON files. This makes it an ideal solution for data collection, analysis, and archiving Telegram channel content.","content":"## Introduction\n\nTeleGraphite is a fast and reliable Python-based Telegram channel scraper designed to efficiently fetch posts and export them to JSON format. This powerful tool allows users to collect data, download media, and organize content from public Telegram channels with ease. It's an excellent solution for researchers, data analysts, or anyone needing to archive specific channel information.\n\nKey features include:\n*   Fetching posts from multiple Telegram channels.\n*   Saving posts as JSON files, including contact exports like emails, phone numbers, and links.\n*   Downloading and saving media files, such as photos, documents, and videos.\n*   Deduplicating posts to prevent saving duplicate content.\n*   Options to run once or continuously with a specified interval.\n*   Filtering posts by keywords or content type (text-only, media-only).\n*   Scheduling fetching at specific days and times for automated data collection.\n\n## Installation\n\nGetting started with TeleGraphite is straightforward. You can install it either from source or using pip.\n\n### From Source\n\nbash\n# Clone the repository\ngit clone https://github.com/hamodywe/telegram-scraper-TeleGraphite.git\ncd telegram-scraper-TeleGraphite\n\n# Install the package\npip install -e .\n\n\n### Using pip\n\nbash\npip install telegraphite\n\n\nBefore usage, ensure you have a Telegram API application setup (API ID and API Hash) and a `.env` file with your credentials. You'll also need a `channels.txt` file listing the Telegram channels you wish to scrape.\n\n## Examples\n\nTeleGraphite offers a flexible command-line interface for various scraping scenarios.\n\n### Basic Usage\n\nFetch posts once and exit:\nbash\ntelegraphite once\n\n\nFetch posts continuously with a 1-hour interval:\nbash\ntelegraphite continuous --interval 3600\n\n\n### Advanced Options\n\nFetch 20 posts from each channel and save to a custom directory:\nbash\ntelegraphite once --limit 20 --data-dir custom_data\n\n\nFetch only posts containing specific keywords:\nbash\ntelegraphite once --keywords announcement important news\n\n\nRun continuously on specific days and times:\nbash\ntelegraphite continuous --days monday wednesday friday --times 09:00 18:00\n\n\nYou can also use a YAML configuration file for more complex setups, allowing you to define filters, schedules, and other options.\n\n## Why use TeleGraphite?\n\nTeleGraphite stands out as a robust solution for Telegram data extraction due to its comprehensive feature set and ease of use. It provides unparalleled flexibility for collecting, organizing, and analyzing public Telegram channel content. Whether you need to archive historical posts, monitor ongoing discussions, or extract specific data points like contact information, TeleGraphite simplifies the process. Its ability to download media, deduplicate content, and run on a schedule makes it a powerful tool for automated data acquisition, saving significant time and effort.\n\n## Links\n\n*   **GitHub Repository:** [hamodywe/telegram-scraper-TeleGraphite](https://github.com/hamodywe/telegram-scraper-TeleGraphite){:target=\"_blank\"}\n*   **Telegram API Application:** [my.telegram.org](https://my.telegram.org/){:target=\"_blank\"}","metrics":{"detailViews":3,"githubClicks":4},"dates":{"published":null,"modified":"2025-10-19T15:00:45.000Z"}}