This commit is contained in:
parent
1a3a3eb98c
commit
687125af59
10
main.py
10
main.py
|
@ -4,9 +4,13 @@ url = os.environ['URL']
|
||||||
amount = os.environ['AMOUNT']
|
amount = os.environ['AMOUNT']
|
||||||
|
|
||||||
def thread():
|
def thread():
|
||||||
sent = 0
|
while True:
|
||||||
while True:
|
sent = 0
|
||||||
requests.get(url)
|
r = requests.get(url)
|
||||||
|
if r.status_code == 403:
|
||||||
|
print('Invalid URL')
|
||||||
|
else:
|
||||||
|
pass
|
||||||
sent += 1
|
sent += 1
|
||||||
print(f'Views sent: %s' % sent)
|
print(f'Views sent: %s' % sent)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue