Giter VIP home page Giter VIP logo

tg-parser's People

Contributors

grigorich-jsdio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

tg-parser's Issues

sqlite3

─(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

Line 51

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.