elizhabs / tgpars Goto Github PK
View Code? Open in Web Editor NEWFree Telegram spamer, inviter and parser
License: MIT License
Free Telegram spamer, inviter and parser
License: MIT License
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)``
Удалил файл после парсинга. После создал новый 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 юзеров доходит,и я лечу в бан.Как можно решить проблему?
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'
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)
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
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>])
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
If you want to connect and share successful ideas and strategies, add me to telegram
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 #
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.