prengus / accless-tg-scraper

Scrap telegram web WITHOUT account or API token (copy from mr. kisspeace Github)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

accless-tg-scraper

Scrap posts from telegram web WITHOUT account or API token

Install

python -m pip install "git+https://github.com/Kisspeace/accless-tg-scraper.git#egg=accless-tg-scraper" 

Simple example

import asyncio
from accless_tg_scraper import *

async def main():
  telegram = TgScraper()
  page = await telegram.get_posts_page('evgenii_ponasenkov')
  posts = page.posts

  print(f'got {len(posts)} posts.')
  for post in posts:
    print(f'{post.url}:{post.content}\n')
    
asyncio.run(main())

About

Scrap telegram web WITHOUT account or API token (copy from mr. kisspeace Github)


Languages

Language:Python 99.3%Language:Shell 0.7%