Created
May 13, 2020 06:52
-
-
Save SiddheshNan/5f1cf10780ee420d271cf4ea3387b1cf to your computer and use it in GitHub Desktop.
Dumb Script that GETs URL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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