Skip to content

Instantly share code, notes, and snippets.

@SiddheshNan
Created May 13, 2020 06:52
Show Gist options
  • Save SiddheshNan/5f1cf10780ee420d271cf4ea3387b1cf to your computer and use it in GitHub Desktop.
Save SiddheshNan/5f1cf10780ee420d271cf4ea3387b1cf to your computer and use it in GitHub Desktop.
Dumb Script that GETs URL
import time
import requests
def getURL():
requests.get(url = 'http://example.com')
try:
count = input("please enter number of views to get: \n")
pause = input("please enter pause time: \n")
count = int(count)
pause = int(pause)
except Exception as e:
print(e)
quit()
interation = 1
for i in range(count):
print('getting url | interation no: ', interation)
getURL()
time.sleep(pause)
interation += 1
print('Done!')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment