Cloud Run :- https://telegram-url-extracter-wuv6jff7zq-de.a.run.app/
This repository provides a set of tools to extract urls your Telegram chat history. You can use this tool to export your Telegram user, group, or chat history in JSON format, extract text messages, and it can help you extract all available URLs in Telegram and generate a CSV file for further analysis.
Before using this tool, ensure you have the following installed on your system:
- Telegram Desktop
- Python (version 3.7 or higher)
- The required Python packages (you can install them using
pip
):pandas
for handling data and creating CSV files.
To export your Telegram chat history, follow these steps:
-
Install Telegram Desktop on your computer if you haven't already.
-
Open Telegram Desktop and log in with your account.
-
Go to the chat or group you want to export and click on the profile picture.
-
In the chat/group profile, click on the three vertical dots (⋮) in the top-right corner and select "Export chat history."
-
Choose the "JSON" format for exporting the chat history. Save the resulting
.json
file to a location on your computer.
Clone this repository to your local machine and navigate to the repository directory.
git clone https://github.com/Yash-Kavaiya/telegram-url-scraper
cd telegram-url-scraper
To extract text messages from the exported Telegram data and create a word cloud, run the following command:
python app.py -i result.json
Replace path/to/your/result.json
with the path to your exported Telegram chat history JSON file. This command will generate a word cloud image based on the text messages found in the chat history.
If you have improvements or additional features to add to this project, feel free to contribute. Please follow the standard GitHub Fork and Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.