grigorich-jsdio / tg-parser Goto Github PK
View Code? Open in Web Editor NEWСкрипт позволяет выгрузить участников чатов/каналов(по чату для комментариев) и сообщения в различные форматы файлов.
Скрипт позволяет выгрузить участников чатов/каналов(по чату для комментариев) и сообщения в различные форматы файлов.
─(kali㉿kali)-[~/TG-Parser/data]
└─$ python3 main.py
Введите ссылку на чат: https://t.me/cisspknights
Упс... Возникла ошибка
Текст ошибки:
unable to open database file
Отправьте скриншот разработчику.
Traceback (most recent call last):
File "/home/kali/TG-Parser/data/main.py", line 134, in
raise e
File "/home/kali/TG-Parser/data/main.py", line 27, in
res = loop.run_until_complete(check_chat(link, 'url'))
File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/home/kali/TG-Parser/data/my_functions.py", line 53, in check_chat
async with TelegramClient('session', api_id, api_hash) as client:
File "/usr/local/lib/python3.9/dist-packages/telethon/client/telegrambaseclient.py", line 262, in init
session = SQLiteSession(session)
File "/usr/local/lib/python3.9/dist-packages/telethon/sessions/sqlite.py", line 47, in init
c = self._cursor()
File "/usr/local/lib/python3.9/dist-packages/telethon/sessions/sqlite.py", line 228, in _cursor
self._conn = sqlite3.connect(self.filename,
sqlite3.OperationalError: unable to open database file
Entered phone number => 'Please enter your password:'
What??
if os.path.exists(f'../Чаты') is False:
os . mkdir ( f '../ Chat' )
if os.path.exists(f'../Каналы') is False:
os . mkdir ( f '../ Channels' )
if os.path.exists(f'../{channel_type}/{title}') is False:
os.mkdir(f'../{channel_type}/{title}')
with open(f'../{channel_type}/{title}/Участники {title}.json', 'w', encoding='utf8') as f:
with open(f'../{channel_type}/{title}/Участники {title}.txt', 'w', encoding='utf8') as file:
all_users = {
'admins': admins,
'users': members
Syntax errors detected :
Line 51:
if os.path.exists(f'../\u0427\u0430\u0442\u044b') is False:
^
SyntaxError: invalid syntax
Возникала ли проблемы выхода из тг аккаунта со всех устройства после использования скрита? Есть ли решение данной проблемы?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.