Giter VIP home page Giter VIP logo

abirhasan2005 / telegramscraper Goto Github PK

View Code? Open in Web Editor NEW
465.0 465.0 267.0 37 KB

Using this tool you can easily add so many members from any group to your group. Less than 2 minutes. Super easy. Time saver. But this tool is only for educational purpose. You could be banned from Telegram. So be careful. Recommanded to use this tool only on Termux.

Python 100.00%
adder saver scraper smsbot telegram-bots telegram-group telegram-scraper telegram-scraper-bot termux

telegramscraper's Introduction

TelegramScraper (Read Below)

It can scrape and add members from one chat to another chat using some Telegram accounts. Also it can scrape hidden members of group going through group messages. Bot has very user-friendly interface.

Telegram Group:

Join Telegram group for help, feedback, details and chats.

How to Setup:

  • Go to https://my.telegram.org and Login.
  • Click on API development tools and fill the required fields.
  • Put app name you want & select Other in Platform.
  • After clicking Create App, Copy "api_id" & "api_hash" from there. (This will be used in setup.py)

How To Install?:

$ apt install git -y

$ git clone https://github.com/AbirHasan2005/TelegramScraper

$ cd TelegramScraper

$ chmod +x * && python3 setup.py

To Genrate User Data:

$ python3 scraper.py

  • (members.csv is default if you changed name use it)

  • Add users to your group

$ python3 adder.py

Or,

$ python3 add2group.py members.csv

  • If you need more help

Use Paid Script

This is very old version. I already made a better Telegram Bot or Paid Script Version where you can login your accounts and scrape members to add from one chat to another or export .csv data of members list. Also you can scrape hidden members of a group. Bot or Script both are very easy to use. Buy Only From Here. So I don't want to work on this tool anymore, it's worthless. So use paid version only. But remember it will not bypass Telegram limitations. So read about Telegram limitations by your own and then use the script or bot. If you need more help you can contact in Support Group. Screenshot 1 Screenshot 2 Screenshot 3

telegramscraper's People

Contributors

abirhasan2005 avatar gagan2021 avatar mrbeandev avatar sourcery-ai-bot 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  avatar  avatar

telegramscraper's Issues

No module named 'telethon'

~/TelegramScraper $ python3 scraper.py Traceback (most recent call last): File "/data/data/com.termux/files/home/TelegramScraper/scraper.py", line 8, in
from telethon.sync import TelegramClient ModuleNotFoundError: No module named 'telethon'

error

Traceback (most recent call last):
File "adder.py", line 104, in
client(InviteToChannelRequest(target_group_entity, [user_to_add]))
File "/home/slaserx/.local/lib/python3.8/site-packages/telethon/sync.py", line 39, in syncified
return loop.run_until_complete(coro)
File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/home/slaserx/.local/lib/python3.8/site-packages/telethon/client/users.py", line 30, in call
return await self._call(self._sender, request, ordered=ordered)
File "/home/slaserx/.local/lib/python3.8/site-packages/telethon/client/users.py", line 52, in _call
raise errors.FloodWaitError(request=r, capture=diff)
telethon.errors.rpcerrorlist.FloodWaitError: A wait of 38666 seconds is required (caused by InviteToChannelRequest)
Unexpected Error!

A wait of 29 seconds is required

[+] Choose a group to scrape members:
[0] - BitShiba The Shiba Inu Killer | Official Crypto

[+] Enter a Number: 0
[+] Fetching Members ...
Traceback (most recent call last):
  File "scraper.py", line 85, in <module>
    all_participants = client.get_participants(target_group, aggressive=True)
  File "/root/.miniconda3/envs/python38/lib/python3.8/site-packages/telethon/sync.py", line 39, in syncified
    return loop.run_until_complete(coro)
  File "/root/.miniconda3/envs/python38/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "/root/.miniconda3/envs/python38/lib/python3.8/site-packages/telethon/client/chats.py", line 507, in get_participants
    return await self.iter_participants(*args, **kwargs).collect()
  File "/root/.miniconda3/envs/python38/lib/python3.8/site-packages/telethon/requestiter.py", line 113, in collect
    async for message in self:
  File "/root/.miniconda3/envs/python38/lib/python3.8/site-packages/telethon/requestiter.py", line 74, in __anext__
    if await self._load_next_chunk():
  File "/root/.miniconda3/envs/python38/lib/python3.8/site-packages/telethon/client/chats.py", line 222, in _load_next_chunk
    results = await self.client(self.requests)
  File "/root/.miniconda3/envs/python38/lib/python3.8/site-packages/telethon/client/users.py", line 30, in __call__
    return await self._call(self._sender, request, ordered=ordered)
  File "/root/.miniconda3/envs/python38/lib/python3.8/site-packages/telethon/client/users.py", line 80, in _call
    raise MultiError(exceptions, results, requests)
telethon.errors.common.MultiError: ([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)'), None, 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)')], [None, <telethon.tl.types.channels.ChannelParticipants object at 0x7f3c4ccae1f0>, None, None, <telethon.tl.types.channels.ChannelParticipants object at 0x7f3c4cc50d60>, <telethon.tl.types.channels.ChannelParticipants object at 0x7f3c4cd33370>, 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 0x7f3c4ce12040>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f3c4ce12100>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f3c4ce121c0>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f3c4ce12280>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f3c4ce12340>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f3c4ce12400>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f3c4ce124c0>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f3c4ce12580>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f3c4ce12640>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f3c4ce12700>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f3c4ce127c0>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f3c4ce12880>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f3c4ce12940>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f3c4ce12a00>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f3c4ce12ac0>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f3c4ce12b80>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f3c4ce12c40>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f3c4ce12d00>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f3c4ce12dc0>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f3c4ce12e80>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f3c4ce12f40>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f3c4ce13040>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f3c4ce13100>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f3c4ce131c0>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f3c4ce13280>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f3c4ce13340>])

my group is 't.me/bitshibatoken'.I join the group recently.I can't send gif until 2022/4/16 23:18.Is it relevant to the error?

Error

Traceback (most recent call last):
  File "c:\Users\AdministratorBOT\Desktop\RDP\TelegramScraper\scraper.py", line 50, in <module>
    client.sign_in(phone, input(gr+'[+] Enter the verification code: '+yo))
  File "C:\Users\AdministratorBOT\AppData\Local\Programs\Python\Python310\lib\site-packages\telethon\sync.py", line 39, in syncified
    return loop.run_until_complete(coro)
  File "C:\Users\AdministratorBOT\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 646, in run_until_complete
    return future.result()
  File "C:\Users\AdministratorBOT\AppData\Local\Programs\Python\Python310\lib\site-packages\telethon\client\auth.py", line 368, in sign_in
    result = await self(request)
  File "C:\Users\AdministratorBOT\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\AdministratorBOT\AppData\Local\Programs\Python\Python310\lib\site-packages\telethon\client\users.py", line 77, in _call
    result = await future
telethon.errors.rpcbaseerrors.AuthKeyError: RPCError 406: UPDATE_APP_TO_LOGIN (caused by SignInRequest)

Traceback error

Traceback (most recent call last): File "/data/data/com.termux/files/home/TelegramScraper/adder.py", line 44, in <module> with open(r"members.csv", encoding='UTF-8') as f: #Enter your file name FileNotFoundError: [Errno 2] No such file or directory: 'members.csv'

0 Groups - Because private chat

So the scraper works fines with public chats, but with public groups where only admins can post this dont work, there is any work around ?

Customize group list...

When I run scraper.py it gives me a preloaded list of groups to choose from..
How do I add my own groups to the list as the ones listed are not of interest.

Thank you!

trace back error

Traceback (most recent call last):
File "C:/Users/USER/Documents/The bot/git.py", line 37, in
user['id'] = int(row[1])
ValueError: invalid literal for int() with base 10: 'UserStatusOffline(was_online=datetime.datetime(2021, 6, 25, 6, 44, 7, tzinfo=datetime.timezone.utc))'

Please How do i resolve this?

errors when run scraper.py

[+] Enter a Number: 31
[+] Fetching Members ...
Traceback (most recent call last):
File "/data/data/com.termux/files/home/TelegramScraper/scraper.py", line 85, in
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 641, 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: ([None, FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), None, FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), None, FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)')], [<telethon.tl.types.channels.ChannelParticipants object at 0x7b59543310>, None, None, None, <telethon.tl.types.channels.ChannelParticipants object at 0x7b597bf8b0>, None, None, <telethon.tl.types.channels.ChannelParticipants object at 0x7b5969a7a0>, 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 0x7b59ae4910>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7b59ae49d0>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7b59ae4a90>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7b59ae4b50>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7b59ae4c10>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7b59ae4cd0>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7b59ae4d90>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7b59ae4e50>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7b59ae4f10>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7b59ae4fd0>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7b59ae5090>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7b59ae5150>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7b59ae5210>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7b59ae52d0>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7b59ae5390>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7b59ae5450>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7b59ae5510>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7b59ae55d0>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7b59ae5690>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7b59ae5750>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7b59ae5810>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7b59ae58d0>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7b59ae5990>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7b59ae5a50>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7b59ae5b10>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7b59ae5bd0>])

Traceback (most recent call last):

Traceback (most recent call last):
File "scraper.py", line 85, in
all_participants = client.get_participants(target_group, aggressive=True)
File "/run/media/vadiki/D_238_GB_WD/Projects/python/Telegram_chat_user_dumper/env/lib64/python3.8/site-packages/telethon/sync.py", line 39, in syncified
return loop.run_until_complete(coro)
File "/usr/lib64/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/run/media/vadiki/D_238_GB_WD/Projects/python/Telegram_chat_user_dumper/env/lib64/python3.8/site-packages/telethon/client/chats.py", line 507, in get_participants
return await self.iter_participants(*args, **kwargs).collect()
File "/run/media/vadiki/D_238_GB_WD/Projects/python/Telegram_chat_user_dumper/env/lib64/python3.8/site-packages/telethon/requestiter.py", line 113, in collect
async for message in self:
File "/run/media/vadiki/D_238_GB_WD/Projects/python/Telegram_chat_user_dumper/env/lib64/python3.8/site-packages/telethon/requestiter.py", line 74, in anext
if await self._load_next_chunk():
File "/run/media/vadiki/D_238_GB_WD/Projects/python/Telegram_chat_user_dumper/env/lib64/python3.8/site-packages/telethon/client/chats.py", line 222, in _load_next_chunk
results = await self.client(self.requests)
File "/run/media/vadiki/D_238_GB_WD/Projects/python/Telegram_chat_user_dumper/env/lib64/python3.8/site-packages/telethon/client/users.py", line 30, in call
return await self._call(self._sender, request, ordered=ordered)
File "/run/media/vadiki/D_238_GB_WD/Projects/python/Telegram_chat_user_dumper/env/lib64/python3.8/site-packages/telethon/client/users.py", line 80, in _call
raise MultiError(exceptions, results, requests)
telethon.errors.common.MultiError: ([FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), None, FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), None, FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), None, FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)'), FloodWaitError('A wait of 30 seconds is required (caused by GetParticipantsRequest)')], [None, None, <telethon.tl.types.channels.ChannelParticipants object at 0x7f82c18d76d0>, None, <telethon.tl.types.channels.ChannelParticipants object at 0x7f82c18cc2b0>, None, None, <telethon.tl.types.channels.ChannelParticipants object at 0x7f82c18c12e0>, 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 0x7f82c1baca90>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f82c1bacb50>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f82c1bacc10>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f82c1baccd0>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f82c1bacd90>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f82c1bace50>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f82c1bacf10>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f82c1bacfd0>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f82c1baf0d0>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f82c1baf190>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f82c1baf250>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f82c1baf310>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f82c1baf3d0>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f82c1baf490>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f82c1baf550>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f82c1baf610>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f82c1baf6d0>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f82c1baf790>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f82c1baf850>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f82c1baf910>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f82c1baf9d0>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f82c1bafa90>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f82c1bafb50>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f82c1bafc10>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f82c1bafcd0>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x7f82c1bafd90>])
(env) vadiki@localhost:/run/media/vadiki/D_238_GB_WD/Projects/python/Telegram_chat_user_dumper/TeleGram-Scraper>

How to unlock database?

Traceback (most recent call last):
File "adder.py", line 36, in
with client:
File "/usr/local/lib/python3.8/dist-packages/telethon/helpers.py", line 184, in _sync_enter
return loop.run_until_complete(self.aenter())
File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/usr/local/lib/python3.8/dist-packages/telethon/client/auth.py", line 713, in aenter
return await self.start()
File "/usr/local/lib/python3.8/dist-packages/telethon/client/auth.py", line 140, in _start
await self.connect()
File "/usr/local/lib/python3.8/dist-packages/telethon/client/telegrambaseclient.py", line 524, in connect
self.session.auth_key = self._sender.auth_key
File "/usr/local/lib/python3.8/dist-packages/telethon/sessions/sqlite.py", line 180, in auth_key
self._update_session_table()
File "/usr/local/lib/python3.8/dist-packages/telethon/sessions/sqlite.py", line 194, in _update_session_table
c.execute('delete from sessions')
sqlite3.OperationalError: database is locked
Task was destroyed but it is pending!
task: <Task pending name='Task-3' coro=<Connection._send_loop() running at /usr/local/lib/python3.8/dist-packages/telethon/network/connection/connection.py:306> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x7f2a6c062d60>()]>>
Task was destroyed but it is pending!
task: <Task pending name='Task-4' coro=<Connection._recv_loop() running at /usr/local/lib/python3.8/dist-packages/telethon/network/connection/connection.py:324> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x7f2a6c062eb0>()]>>
Task was destroyed but it is pending!
task: <Task pending name='Task-5' coro=<MTProtoSender._send_loop() running at /usr/local/lib/python3.8/dist-packages/telethon/network/mtprotosender.py:460> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x7f2a6c08a070>()]>>
Task was destroyed but it is pending!
task: <Task pending name='Task-6' coro=<MTProtoSender._recv_loop() running at /usr/local/lib/python3.8/dist-packages/telethon/network/mtprotosender.py:503> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x7f2a6c08a0a0>()]>>

Application Fails to Complete

Unfortunately the scraper fails to complete and build the csv file.

[+] Choose a group to scrape members :
[0] - Test Group
[1] - Wild Whales & Icon
[2] - Babhat Group

[+] Enter a Number : 2
[+] Fetching Members...
Traceback (most recent call last):
File "C:\Anaconda\Bot\telegram-dm-bot-master\scraper.py", line 80, in
all_participants = client.get_participants(target_group, aggressive=True)
File "C:\Python310\lib\site-packages\telethon\sync.py", line 39, in syncified
return loop.run_until_complete(coro)
File "C:\Python310\lib\asyncio\base_events.py", line 641, in run_until_complete
return future.result()
File "C:\Python310\lib\site-packages\telethon\client\chats.py", line 507, in get_participants
return await self.iter_participants(*args, **kwargs).collect()
File "C:\Python310\lib\site-packages\telethon\requestiter.py", line 113, in collect
async for message in self:
File "C:\Python310\lib\site-packages\telethon\requestiter.py", line 74, in anext
if await self._load_next_chunk():
File "C:\Python310\lib\site-packages\telethon\client\chats.py", line 222, in _load_next_chunk
results = await self.client(self.requests)
File "C:\Python310\lib\site-packages\telethon\client\users.py", line 30, in call
return await self._call(self._sender, request, ordered=ordered)
File "C:\Python310\lib\site-packages\telethon\client\users.py", line 80, in _call
raise MultiError(exceptions, results, requests)
telethon.errors.common.MultiError: ([None, 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)')], [<telethon.tl.types.channels.ChannelParticipants object at 0x0000027D7C6373A0>, <telethon.tl.types.channels.ChannelParticipants object at 0x0000027D7C637460>, <telethon.tl.types.channels.ChannelParticipants object at 0x0000027D7C5937C0>, None, None, None], [<telethon.tl.functions.channels.GetParticipantsRequest object at 0x0000027D7C6360E0>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x0000027D7C6366E0>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x0000027D7C6367A0>, <telethon.tl.functions.channels.GetParticipantsRequest

Any ideas?

My script keeps ending and sometimes get these codes

Adding 1613426659
Traceback (most recent call last):
File "/root/TelegramScraper/adder.py", line 99, in
user_to_add = client.get_input_entity(user['username'])
File "/usr/local/lib/python3.9/dist-packages/telethon/sync.py", line 39, in syncified
return loop.run_until_complete(coro)
File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/usr/local/lib/python3.9/dist-packages/telethon/client/users.py", line 437, in get_input_entity
await self._get_entity_from_string(peer))
File "/usr/local/lib/python3.9/dist-packages/telethon/client/users.py", line 553, in _get_entity_from_string
result = await self(
File "/usr/local/lib/python3.9/dist-packages/telethon/client/users.py", line 30, in call
return await self._call(self._sender, request, ordered=ordered)
File "/usr/local/lib/python3.9/dist-packages/telethon/client/users.py", line 52, in _call
raise errors.FloodWaitError(request=r, capture=diff)
telethon.errors.rpcerrorlist.FloodWaitError: A wait of 24348 seconds is required (caused by ResolveUsernameRequest)
Unexpected Error!
Adding 354995733
Traceback (most recent call last):
File "/root/TelegramScraper/adder.py", line 99, in
user_to_add = client.get_input_entity(user['username'])
File "/usr/local/lib/python3.9/dist-packages/telethon/sync.py", line 39, in syncified
return loop.run_until_complete(coro)
File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/usr/local/lib/python3.9/dist-packages/telethon/client/users.py", line 437, in get_input_entity
await self._get_entity_from_string(peer))
File "/usr/local/lib/python3.9/dist-packages/telethon/client/users.py", line 553, in _get_entity_from_string
result = await self(
File "/usr/local/lib/python3.9/dist-packages/telethon/client/users.py", line 30, in call
return await self._call(self._sender, request, ordered=ordered)
File "/usr/local/lib/python3.9/dist-packages/telethon/client/users.py", line 52, in _call
raise errors.FloodWaitError(request=r, capture=diff)
telethon.errors.rpcerrorlist.FloodWaitError: A wait of 24348 seconds is required (caused by ResolveUsernameRequest)
Unexpected Error!

And

Traceback (most recent call last):
File "/root/TelegramScraper/adder.py", line 104, in
client(InviteToChannelRequest(target_group_entity, [user_to_add]))
File "/usr/local/lib/python3.9/dist-packages/telethon/sync.py", line 39, in syncified
return loop.run_until_complete(coro)
File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/usr/local/lib/python3.9/dist-packages/telethon/client/users.py", line 30, in call
return await self._call(self._sender, request, ordered=ordered)
File "/usr/local/lib/python3.9/dist-packages/telethon/client/users.py", line 52, in _call
raise errors.FloodWaitError(request=r, capture=diff)
telethon.errors.rpcerrorlist.FloodWaitError: A wait of 21295 seconds is required (caused by InviteToChannelRequest)
Unexpected Error!

smsbot.py linebreak possible?

Hello!

Is it possible in the 2nd line of the smsbot.py "[+] Enter Your Message :" to enter more than 1 line?

Thanks
hc :)

ValueError

File "/Users/****/githubProjects/TeleGram-Scraper/add2group.py", line 63, in
'access_hash': int(row[2]),
ValueError: invalid literal for int() with base 10:

When running add2group.py I get the above error. Please advise.

scraper dosent work

[+] Enter a Number: 0
[+] Fetching Members ...
Traceback (most recent call last):
File "C:\Users\USER\Desktop\TelegramScraper-master\scraper.py", line 85, in
all_participants = client.get_participants(target_group, aggressive=True)
File "C:\Users\USER\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\telethon\sync.py", line 39, in syncified
return loop.run_until_complete(coro)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2800.0_x64__qbz5n2kfra8p0\lib\asyncio\base_events.py", line 642, in run_until_complete
return future.result()
File "C:\Users\USER\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\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\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\telethon\requestiter.py", line 113, in collect
async for message in self:
File "C:\Users\USER\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\telethon\requestiter.py", line 74, in anext
if await self._load_next_chunk():
File "C:\Users\USER\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\telethon\client\chats.py", line 222, in _load_next_chunk
results = await self.client(self.requests)
File "C:\Users\USER\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\telethon\client\users.py", line 30, in call
return await self._call(self._sender, request, ordered=ordered)
File "C:\Users\USER\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\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)'), 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)'), 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 0x0000021B6D103D00>, None, <telethon.tl.types.channels.ChannelParticipants object at 0x0000021B6CB00430>, None, None, <telethon.tl.types.channels.ChannelParticipants object at 0x0000021B6D0FDA00>, 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 0x0000021B6C7FF280>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x0000021B6C7FF340>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x0000021B6C7FF400>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x0000021B6C7FF4C0>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x0000021B6C7FF580>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x0000021B6C7FF640>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x0000021B6C7FF700>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x0000021B6C7FF7C0>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x0000021B6C7FF880>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x0000021B6C7FF940>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x0000021B6C7FFA00>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x0000021B6C7FFAC0>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x0000021B6C7FFB80>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x0000021B6C7FFC40>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x0000021B6C7FFD00>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x0000021B6C7FFDC0>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x0000021B6C7FFE80>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x0000021B6C7FFF40>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x0000021B6C804040>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x0000021B6C804100>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x0000021B6C8041C0>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x0000021B6C804280>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x0000021B6C804340>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x0000021B6C804400>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x0000021B6C8044C0>, <telethon.tl.functions.channels.GetParticipantsRequest object at 0x0000021B6C804580>])

I found a solution for 2FA [,](https://stackoverflow.com/questions/68407031/telethon-cannot-sign-into-accounts-with-two-step-verfication) could you add it to the code. I didn't succeed, I don't have enough knowledge ((

    I found a solution for 2FA [ link](https://stackoverflow.com/questions/68407031/telethon-cannot-sign-into-accounts-with-two-step-verfication) could you add it to the code. I didn't succeed, I don't have enough knowledge (( 

`client.start().

phone = input("Enter phone: ")
await client.send_code_request(phone, force_sms=False)
value = input("Enter login code: ")
try:
me = await client.sign_in(phone, code=value)
except telethon.errors.SessionPasswordNeededError:
password = input("Enter password: ")
me = await client.sign_in(password=password)`

Originally posted by @laminda in #7 (comment)

Flood error

Thanks for this software but i cant solve the problem with flood, after 10 or 15 request give a error by flood. Is impossible to avoid this?

I change time request to 5 min, but persist

After the error appear, is possible resume? To avoid send message to same users again

About adding function Flood Error

when i try to add members to my group it's giving me error:
Getting Flood Error from telegram. Script is stopping now. Please try again after some time.

Invalid literal for int() with base 10

Traceback (most recent call last):
File "smsbot.py", line 106, in
main.send_sms()
File "smsbot.py", line 67, in send_sms
'access_hash': int(row[2]),
ValueError: invalid literal for int() with base 10: '-4.84E+18'

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.