github-views-botter/main.py

16 lines
321 B
Python
Raw Normal View History

2021-08-29 14:12:44 +00:00
import requests, threading
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-08-29 14:12:44 +00:00
sent = 0
while True:
requests.get(url)
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()