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']
|
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…
Add table
Add a link
Reference in a new issue