github-views-botter/main.py

20 lines
411 B
Python
Raw Permalink Normal View History

2021-09-04 09:52:06 +00:00
import requests, threading, os
2021-08-29 13:58:32 +00:00
url = input('raw link: ')
2021-08-29 14:12:44 +00:00
amount = input('enter the amount of threads (go for 300): ')
2021-08-29 13:58:32 +00:00
2021-08-29 14:27:06 +00:00
def thread():
2021-09-04 09:52:06 +00:00
while True:
sent = 0
r = requests.get(url)
if r.status_code == 403:
print('Invalid URL')
else:
pass
2021-08-29 14:12:44 +00:00
sent += 1
print(f'Views sent: %s' % sent)
for _ in range(int(amount)):
2021-08-29 14:27:06 +00:00
t = threading.Thread(target=thread)
2021-08-29 14:12:44 +00:00
t.start()