This commit is contained in:
igna 2021-09-04 05:53:27 -04:00 committed by GitHub
parent 1a3a3eb98c
commit 687125af59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 3 deletions

10
main.py
View File

@ -4,9 +4,13 @@ url = os.environ['URL']
amount = os.environ['AMOUNT']
def thread():
sent = 0
while True:
requests.get(url)
while True:
sent = 0
r = requests.get(url)
if r.status_code == 403:
print('Invalid URL')
else:
pass
sent += 1
print(f'Views sent: %s' % sent)