mirror of
https://github.com/uhIgnacio/github-views-botter.git
synced 2024-08-14 21:47:03 +00:00
Merge e84d0aca2e
into 15ebedf8f3
This commit is contained in:
commit
3c368b334f
1 changed files with 12 additions and 10 deletions
22
main.py
22
main.py
|
@ -1,19 +1,21 @@
|
||||||
import requests, threading, os
|
import requests, threading
|
||||||
|
|
||||||
url = input('raw link: ')
|
url = input('Enter your URL: ')
|
||||||
amount = input('enter the amount of threads (go for 300): ')
|
threads = input('Enter the amount of threads: ')
|
||||||
|
|
||||||
|
sent = 0
|
||||||
|
|
||||||
def thread():
|
def thread():
|
||||||
|
global url
|
||||||
|
global sent
|
||||||
while True:
|
while True:
|
||||||
sent = 0
|
|
||||||
r = requests.get(url)
|
r = requests.get(url)
|
||||||
if r.status_code == 403:
|
if not r.ok:
|
||||||
print('Invalid URL')
|
print('Failed to request URL.')
|
||||||
else:
|
else:
|
||||||
pass
|
sent += 1
|
||||||
sent += 1
|
print(f'Successfully sent a request to {url}. ({str(sent)})')
|
||||||
print(f'Views sent: %s' % sent)
|
|
||||||
|
|
||||||
for _ in range(int(amount)):
|
for _ in range(int(threads)):
|
||||||
t = threading.Thread(target=thread)
|
t = threading.Thread(target=thread)
|
||||||
t.start()
|
t.start()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue