mirror of
https://github.com/uhIgnacio/github-views-botter.git
synced 2024-08-14 21:47:03 +00:00
few stuff
This commit is contained in:
parent
045930cc60
commit
e00f47160e
1 changed files with 8 additions and 5 deletions
11
main.py
11
main.py
|
@ -1,13 +1,16 @@
|
||||||
import requests, threading
|
import requests, threading, os
|
||||||
|
|
||||||
url = input('raw link: ')
|
url = input('raw link: ')
|
||||||
amount = input('enter the amount of threads (go for 300): ')
|
amount = input('enter the amount of threads (go for 300): ')
|
||||||
sent = 0
|
|
||||||
|
|
||||||
def thread():
|
def thread():
|
||||||
global sent
|
|
||||||
while True:
|
while True:
|
||||||
requests.get(url)
|
sent = 0
|
||||||
|
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