From e00f47160e23de32f4ca33d7b861f8567c9bf7d0 Mon Sep 17 00:00:00 2001 From: igna <88955484+nekospara@users.noreply.github.com> Date: Sat, 4 Sep 2021 05:52:06 -0400 Subject: [PATCH] few stuff --- main.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/main.py b/main.py index ced84af..ecbd0f8 100644 --- a/main.py +++ b/main.py @@ -1,13 +1,16 @@ -import requests, threading +import requests, threading, os url = input('raw link: ') amount = input('enter the amount of threads (go for 300): ') -sent = 0 def thread(): - global sent - 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)