agentsclimarketplace

Telegram scrape

Skill aAAaqwq/AGI-Super-Team/skills/telegram-scrape

Search Telegram channels, read posts, ad contactsFrom its SKILL.md

Install
npx -y skills add aAAaqwq/AGI-Super-Team --skill telegram-scrape

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

2.5 KB, 676 tokens by cl100k_base, as published. Nobody here has run it

Telegram Scrape

Search channels, read messages, analyze ad contacts

When to use

  • "find AI channels on telegram"
  • "show messages from a channel"
  • "find ad contacts of channels"
  • "where can I buy ads"
  • "scraping telegram channels"

Tool

$TG_TOOLS_PATH/tools/tg_scrape.py

How to run

Search channels by keywords

# Find channels with "ai" or "cursor" in the name
python3 $TG_TOOLS_PATH/tools/tg_scrape.py channels --keywords "ai,cursor"

# Save to CSV
python3 $TG_TOOLS_PATH/tools/tg_scrape.py channels --keywords "ai" --output channels.csv

# Save to JSON (more data: about, links)
python3 $TG_TOOLS_PATH/tools/tg_scrape.py channels --keywords "ai" --output channels.json

# With exclusions
python3 $TG_TOOLS_PATH/tools/tg_scrape.py channels --keywords "ai" --exclude "spam,nsfw"

Output: title, username, link, subscribers, ad_contacts, ad_links, about.

Read channel/group messages

# Last 20 messages
python3 $TG_TOOLS_PATH/tools/tg_scrape.py messages "Channel Name" --limit 20

# From the last 7 days
python3 $TG_TOOLS_PATH/tools/tg_scrape.py messages "Channel Name" --days 7

Channel Name -- search by substring (case-insensitive).

Search for ad contacts

python3 $TG_TOOLS_PATH/tools/tg_scrape.py ads --keywords "ai,cursor" --posts 10

Analyzes:

  • Channel description (looks for @username, t.me/ links, words "ad", "ads", "price")
  • Last N posts (keyword mentions)
  • Calculates relevance score

Output (JSON stdout): title, username, subscribers, score, ad_contacts, keyword_mentions, sample_posts.

Parameters

CommandParameterDescription
channels--keywords, -kKeywords comma-separated
channels--exclude, -xExclude (comma-separated)
channels--output, -oFile (.csv or .json)
messageschannelChannel/group name
messages--limit, -nMax messages (default: 20)
messages--days, -dOnly from last N days
ads--keywords, -kKeywords (required)
ads--exclude, -xExclude
ads--posts, -pPosts to analyze (default: 10)

Limitations

  • Searches only among channels you are subscribed to
  • GetFullChannelRequest has rate limits
  • 0.2-0.3 sec delay between channels (automatic)

Related skills

  • telegram-groups -- group operations
  • telegram-send -- sending messages (e.g. to advertisers)

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.