Git Product home page Git Product logo

tgpars's People

Contributors

elizhabs 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  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  avatar  avatar  avatar  avatar  avatar  avatar

tgpars's Issues

Always invalid id/hash

Traceback (most recent call last):
  File "pars.py", line 38, in <module>
    client.send_code_request(phone)
  File "C:\Users\Wlthy\AppData\Local\Programs\Python\Python38\lib\site-packages\telethon\sync.py", line 39, in syncified
    return loop.run_until_complete(coro)
  File "C:\Users\Wlthy\AppData\Local\Programs\Python\Python38\lib\asyncio\base_events.py", line 616, in run_until_complete
    return future.result()
  File "C:\Users\Wlthy\AppData\Local\Programs\Python\Python38\lib\site-packages\telethon\client\auth.py", line 519, in send_code_request
    result = await self(functions.auth.SendCodeRequest(
  File "C:\Users\Wlthy\AppData\Local\Programs\Python\Python38\lib\site-packages\telethon\client\users.py", line 30, in __call__
    return await self._call(self._sender, request, ordered=ordered)
  File "C:\Users\Wlthy\AppData\Local\Programs\Python\Python38\lib\site-packages\telethon\client\users.py", line 84, in _call
    result = await future
telethon.errors.rpcerrorlist.ApiIdInvalidError: The api_id/api_hash combination is invalid (caused by SendCodeRequest)``

Решение проблемы с members.csv

Удалил файл после парсинга. После создал новый csv Лист и начал парсинг повторно, но вышла ошибка
Traceback (most recent call last):
File "C:\Users\SuperUser\Desktop\TGPars\invite.py", line 52, in
with open(input_file, encoding='UTF-8') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'members.csv'

Подскажите пожалуйста решение проблемы. Благодарю.

Как избежать бана?

При рассылке сообщений максимум 10-15 юзеров доходит,и я лечу в бан.Как можно решить проблему?

ModuleNotFoundError: No module named 'telethon'

C:\Users\COMP21\Desktop\TGPars-main>python invite.py members.csv
Traceback (most recent call last):
File "C:\Users\COMP21\Desktop\TGPars-main\invite.py", line 2, in
from telethon.sync import TelegramClient
ModuleNotFoundError: No module named 'telethon'

Solving the error in the pars.py file

If you have an error, you can find a solution

Mistake:
Traceback (last last call): File "C:\TG-INVITE\40\TGPars-main\pars.py", line 79, in all_participants = client.get_participants(target_group, aggressive = True)

Decision:
In pars.py file
line 79
all_participants = client.get_participants(target_group, aggressive = True)
Replace
all_participants = client.get_participants(target_group)

Can't pars over 5k members

Traceback (most recent call last):
File "pars.py", line 79, in
all_participants = client.get_participants(target_group)
File "C:\Users\user\AppData\Local\Programs\Python\Python38\lib\site-packages\telethon\sync.py", line 39, in syncified
return loop.run_until_complete(coro)
File "C:\Users\user\AppData\Local\Programs\Python\Python38\lib\asyncio\base_events.py", line 608, in run_until_complete
return future.result()
File "C:\Users\user\AppData\Local\Programs\Python\Python38\lib\site-packages\telethon\client\chats.py", line 507, in get_participants
return await self.iter_participants(*args, **kwargs).collect()
File "C:\Users\user\AppData\Local\Programs\Python\Python38\lib\site-packages\telethon\requestiter.py", line 113, in collect
async for message in self:
File "C:\Users\user\AppData\Local\Programs\Python\Python38\lib\site-packages\telethon\requestiter.py", line 74, in anext
if await self._load_next_chunk():
File "C:\Users\user\AppData\Local\Programs\Python\Python38\lib\site-packages\telethon\client\chats.py", line 224, in _load_next_chunk
participants = results[i]
TypeError: 'ChannelParticipants' object is not subscriptable

Ошибка при парсинге

Traceback (most recent call last): File "/data/data/com.termux/files/home/TGPars/pars.py", line 79, in <module> all_participants = client.get_participants(target_group, aggressive=True) File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/telethon/sync.py", line 39, in syncified return loop.run_until_complete(coro) File "/data/data/com.termux/files/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete return future.result() File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/telethon/client/chats.py", line 507, in get_participants return await self.iter_participants(*args, **kwargs).collect() File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/telethon/requestiter.py", line 113, in collect async for message in self: File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/telethon/requestiter.py", line 74, in __anext__ if await self._load_next_chunk(): File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/telethon/client/chats.py", line 222, in _load_next_chunk results = await self.client(self.requests) File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/telethon/client/users.py", line 30, in __call__ return await self._call(self._sender, request, ordered=ordered) File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/telethon/client/users.py", line 80, in _call raise MultiError(exceptions, results, requests) telethon.errors.common.MultiError: ([FloodWaitError('A wait of 31 seconds is required (caused by GetParticipantsRequest)'), None, FloodWaitError('A wait of 31 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 31 seconds is required (caused by GetParticipantsRequest)'), None, None, FloodWaitError('A wait of 31 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 31 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 31 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 31 seconds is required (caused by GetParticipantsRequest)')], [None, <telethon.tl.types.channels.ChannelParticipants object at 0xf19fd970>, None, None, <telethon.tl.types.channels.ChannelParticipants object at 0xf19fd700>, <telethon.tl.types.channels.ChannelParticipants object at 0xf19fd8c8>, None, None, None, None], [<telethon.tl.functions.channels.GetParticipantsRequest object at 0xf19fbe98>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0xf19fbef8>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0xf19fbf58>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0xf19fbfb8>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0xf19fd160>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0xf19fd1c0>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0xf19fd2e0>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0xf19fd460>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0xf19fd520>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0xf19fd580>]) Segmentation fault
Что делать?

Проблема с сессией

После установки и парсинга моментально вылетают все сессии, акаунты на виртуальные номера. Что с этм делать?

pars.py doesn't work anymore

pars.py doesn't work anymore

Got this since february 2022

Traceback (most recent call last):
File "C:\TG-INVITE\40\TGPars-main\pars.py", line 79, in
all_participants = client.get_participants(target_group, aggressive=True)
File "C:\Users\Singularity\AppData\Local\Programs\Python\Python310\lib\site-packages\telethon\sync.py", line 39, in syncified
return loop.run_until_complete(coro)
File "C:\Users\Singularity\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 641, in run_until_complete
return future.result()
File "C:\Users\Singularity\AppData\Local\Programs\Python\Python310\lib\site-packages\telethon\client\chats.py", line 507, in get_participants
return await self.iter_participants(*args, **kwargs).collect()
File "C:\Users\Singularity\AppData\Local\Programs\Python\Python310\lib\site-packages\telethon\requestiter.py", line 113, in collect
async for message in self:
File "C:\Users\Singularity\AppData\Local\Programs\Python\Python310\lib\site-packages\telethon\requestiter.py", line 74, in anext
if await self._load_next_chunk():
File "C:\Users\Singularity\AppData\Local\Programs\Python\Python310\lib\site-packages\telethon\client\chats.py", line 222, in _load_next_chunk
results = await self.client(self.requests)
File "C:\Users\Singularity\AppData\Local\Programs\Python\Python310\lib\site-packages\telethon\client\users.py", line 30, in call
return await self._call(self._sender, request, ordered=ordered)
File "C:\Users\Singularity\AppData\Local\Programs\Python\Python310\lib\site-packages\telethon\client\users.py", line 80, in _call
raise MultiError(exceptions, results, requests)
telethon.errors.common.MultiError: ([None, FloodWaitError('A wait of 29 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 29 seconds is required (caused by GetParticipantsRequest)'), None, FloodWaitError('A wait of 29 seconds is required (caused by GetParticipantsRequest)'), None, FloodWaitError('A wait of 29 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 29 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 29 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 29 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 29 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 29 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 29 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 29 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 29 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 29 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 29 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 29 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 29 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 29 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 29 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 29 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 29 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 29 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 29 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 29 seconds is required (caused by GetParticipantsRequest)')], [<telethon.tl.types.channels.ChannelParticipants object at 0x000001A94182DE40>, None, None, <telethon.tl.types.channels.ChannelParticipants object at 0x000001A940ABE9E0>, None, <telethon.tl.types.channels.ChannelParticipants object at 0x000001A941838A00>, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None], [<telethon.tl.functions.channels.GetParticipantsRequest object at 0x000001A940970F10>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x000001A940970FD0>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x000001A940971090>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x000001A940971150>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x000001A940971210>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x000001A9409712D0>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x000001A940971390>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x000001A940971450>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x000001A940971510>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x000001A9409715D0>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x000001A940971690>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x000001A940971750>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x000001A940971810>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x000001A9409718D0>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x000001A940971990>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x000001A940971A50>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x000001A940971B10>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x000001A940971BD0>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x000001A940971C90>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x000001A940971D50>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x000001A940971E10>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x000001A940971ED0>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x000001A940971F90>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x000001A940972050>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x000001A940972110>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x000001A9409721D0>])

IndexError: list index out of range

I did everything according to the instructions, set all the dependencies.
I run the script pars.py , it fills the number, I enter the group id and the error is out

        
[+] Choose a group to scrape members :

[+] Enter a Number : 1001006147755
Traceback (most recent call last):
  File "pars.py", line 74, in <module>
    target_group=groups[int(g_index)]
IndexError: list index out of range

FloodWaitError

Adding 1041958619 Traceback (most recent call last): File "/data/data/com.termux/files/home/TGPars/invite.py", line 114, in client(InviteToChannelRequest(target_group_entity,[user_to_add])) File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/telethon/sync.py", line 39, in syncified return loop.run_until_complete(coro) File "/data/data/com.termux/files/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete return future.result() File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/telethon/client/users.py", line 30, in call return await self._call(self._sender, request, ordered=ordered) File "/data/data/com.termux/files/usr/lib/python3.9/site-packages/telethon/client/users.py", line 50, in _call raise errors.FloodWaitError(request=r, capture=diff) telethon.errors.rpcerrorlist.FloodWaitError: A wait of 40744 seconds is required (caused by InviteToChannelRequest) [!] Unexpected Error #

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.