Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

A method to get all posts from telegram groups or channels

Notifications You must be signed in to change notification settings

vandaipham/python-telegram-parser

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to run parse?

  1. Requirement: Python 3.9.x
  2. Run python setup.py
  3. Create a file groupList.txt contenting list of group links (for example: https://t.me/IoTLAB_Arduino_Group)
  4. Run python main.py

Algorithm:

  1. Step 1: getGroupLinks from a file with a list of group links.
  2. Step 2: getGroupEntity to get group Entity.
  3. Step 3: getGroupPosts use the group Entity to get Posts in the time interval fromTime to timeNow.

How to Develop with Python 3.9.7

  1. Create a virtual environment: python -m venv venv
  2. Activate the virtual enviroment.
  3. Install the requirements: pip install -r requirements.txt
  4. Create a file groupList.txt containing the group links.
  5. Run parser: python main.py

About

A method to get all posts from telegram groups or channels

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.