# Telegram Scraper (tgscraper)

> Scrapes, searches and monitors public Telegram channels through their t.me/s web preview, with no account or API key.

Source: https://osinttools.io/tools/telegram-channel-scraper/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

- **Inputs:** Username, URL
- **Category:** Social media intelligence
- **Pricing:** Free, open source
- **Footprint:** passive (does not contact the target)
- **Account required:** no
- **API:** no public API
- **Platforms:** Python CLI and library · Streamlit dashboard · Docker
- **Website:** https://github.com/specialteam/TelegramScraper
- **GitHub:** specialteam/TelegramScraper, 17 stars · Python · MIT · last commit 2026-09-26
- **Listed:** Dec 3
- **Last verified by an editor:** Dec 3, 2026

## What it does

tgscraper is a Python library and command-line tool that reads public channels from Telegram's web preview (t.me/s/<channel>), so it needs no api_id, phone number or session file. It collects each post's date, text, views, reactions, forwards, replies, media, hashtags, mentions and links, can run Telegram's own search over a channel's history, and exports to JSON, CSV, Excel, SQLite or Markdown.

Investigators can use it to pull a channel's full public history quickly, filter it by date, keyword, regex or views, download its photos and videos, or watch several channels and send new posts to a webhook. It also ships simple analytics (posting times, top posts, hashtags, sentiment), a Streamlit dashboard and an MCP server for AI assistants.

Footprint is passive: it reads its own index or third-party records and does not contact the target. No account is needed. There is no public API.

## Features

- No login or API key
- Date, keyword, regex and view filters
- Channel search and channel info
- Export to JSON, CSV, Excel, SQLite and Markdown
- Incremental runs and live watching
- Media download

## Pros

- Nothing to set up on Telegram's side and no account at risk
- Many export formats
- Usable as a CLI, a Python library or from an AI assistant

## Cons

- Public channels with a web preview only, not groups or private chats
- Small project with few users so far
- Depends on the layout of Telegram's preview pages

## When to use it

- Use it when you need a public channel's posts in a spreadsheet or database without logging in to Telegram.
- Use it when you want to watch a set of public channels and be alerted to new posts with a keyword.

## Quick start

Install from PyPI:

```
pip install "telegram-channel-scraper[all]"
tgscraper durov -n 100 -o durov.csv
```

## Alternatives

- [Telepathy](https://osinttools.io/tools/telepathy/): Python CLI for archiving public Telegram chats, collecting member lists and mapping forwards, by Prose Intelligence. (Open source · Username, URL · active · 1,274 GitHub stars)
- [Arctic Shift](https://osinttools.io/tools/arctic-shift/): Free Reddit archive with a web search for posts and comments by subreddit, author, date and text, plus an API and dumps. (Free · Username, URL · passive · 1,983 GitHub stars)
- [URS](https://osinttools.io/tools/urs/): Universal Reddit Scraper: command-line tool that archives subreddits, users and comment threads via the Reddit API. (Open source · Username, URL · passive · 1,049 GitHub stars)
- [Maltego Telegram](https://osinttools.io/tools/maltego-telegram/): Maltego transforms for Telegram that link channels, users, sticker pack owners, similar channels and deleted posts. (Open source · Username, URL · active · 607 GitHub stars)
- [Pyktok](https://osinttools.io/tools/pyktok/): Python module that downloads TikTok videos, metadata and comments from video, user and hashtag pages. (Open source · URL, Username · passive · 470 GitHub stars)
- [Telegram Tracker](https://osinttools.io/tools/telegram-tracker/): Python tool that collects public Telegram channels through the API and builds a message dataset and a channel network graph. (Open source · Username, URL · passive · 386 GitHub stars)

All alternatives to Telegram Scraper (tgscraper) in one table: https://osinttools.io/tools/telegram-channel-scraper/alternatives/

## Change history

- 2026-12-03: Listed in the directory.

Feed of changes to Telegram Scraper (tgscraper): https://osinttools.io/tools/changes/feed.xml?tool=telegram-channel-scraper

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
