Skip to content

Instantly share code, notes, and snippets.

@chriswebb09
Created June 9, 2017 08:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chriswebb09/4acbd54c73092f9e10df67bf39b94565 to your computer and use it in GitHub Desktop.
Save chriswebb09/4acbd54c73092f9e10df67bf39b94565 to your computer and use it in GitHub Desktop.
def __init__(self):
print(sys.argv[0])
if sys.argv[1].startswith("http://") or sys.argv[1].startswith("https://"):
self.url = sys.argv[1]
else:
self.url = "https://" + sys.argv[1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment