Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove trailing whitespace #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

`$ python scraper.py`

* Add Scarped members to your group.
* Add Scarped members to your group.

`$ python adder.py`

Expand Down
16 changes: 8 additions & 8 deletions scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ def banner():
os.system('clear')
banner()
client.sign_in(phone, input(gr+'[+] Enter the code: '+re))

os.system('clear')
banner()
chats = []
last_date = None
chunk_size = 200
groups=[]

result = client(GetDialogsRequest(
offset_date=last_date,
offset_id=0,
Expand All @@ -57,29 +57,29 @@ def banner():
hash = 0
))
chats.extend(result.chats)

for chat in chats:
try:
if chat.megagroup== True:
groups.append(chat)
except:
continue

print(gr+'[+] Choose a group to scrape members :'+re)
i=0
for g in groups:
print(gr+'['+cy+str(i)+']' + ' - ' + g.title)
i+=1

print('')
g_index = input(gr+"[+] Enter a Number : "+re)
target_group=groups[int(g_index)]

print(gr+'[+] Fetching Members...')
time.sleep(1)
all_participants = []
all_participants = client.get_participants(target_group, aggressive=True)

print(gr+'[+] Saving In file...')
time.sleep(1)
with open("members.csv","w",encoding='UTF-8') as f:
Expand All @@ -99,5 +99,5 @@ def banner():
else:
last_name= ""
name= (first_name + ' ' + last_name).strip()
writer.writerow([username,user.id,user.access_hash,name,target_group.title, target_group.id])
writer.writerow([username,user.id,user.access_hash,name,target_group.title, target_group.id])
print(gr+'[+] Members scraped successfully. Subscribe Termux Professor Youtube Channel For Add Members')
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

"""

you can re run setup.py
you can re run setup.py
if you have added some wrong value

"""
Expand All @@ -18,7 +18,7 @@ def banner():
{re}╔═╗{cy}┌─┐┌┬┐┬ ┬┌─┐
{re}╚═╗{cy}├┤ │ │ │├─┘
{re}╚═╝{cy}└─┘ ┴ └─┘┴

Version : 1.01
{re}Subscribe Termux Professor on Youtube
{cy}www.youtube.com/c/TermuxProfessorYT
Expand Down