Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import webbrowser # Import statements
- import time
- import os
- import requests
- print ('''
- . . . . . .
- \ /* _ . , __ _. _| _| _ ._. _.|._ |_ _.
- \/ |(/, \/\/ _) (_](_](_](/,[ (_]|[_)[ )(_]
- |
- made by nalf3in
- ''')
- def open_webpage(): # main function,
- r = requests.get(url,proxies={'http':' ip:port'})
- time.sleep(refresh) # Refresh rate
- def verify_int(user_input): # It's the function that verify if the input of the user is a number
- try:
- user_input = int(user_input)
- return True
- except ValueError: # If the user does not enter a number
- print ('This is not a valid input please retry ')
- url = input("Enter your url: ") # Specify the url
- ip = input('Type the ip addres of the proxy ')
- port = input('Type the port of the proxy ')
- while True:
- number_of_views = input ('How many views do you want ? : ') # specify the number of views the user want with error handling from verify_float()
- if verify_int(number_of_views):
- number_of_views = int(number_of_views) # Transform the str in a int
- break
- while True:
- refresh = input("Enter refresh rate(seconds) : ") # specify the refresh rate of the browser
- if verify_int(refresh):
- refresh = float(refresh) # transform the
- break
- for i in range(number_of_views) :
- open_webpage()
- print('')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement