mirror of
https://github.com/uhIgnacio/github-views-botter.git
synced 2024-08-14 21:47:03 +00:00
ye
This commit is contained in:
parent
1a3a3eb98c
commit
687125af59
1 changed files with 7 additions and 3 deletions
10
main.py
10
main.py
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue