Skip to content

Instantly share code, notes, and snippets.

@KaiserWilhelm23
Last active July 28, 2020 03:11
Show Gist options
  • Save KaiserWilhelm23/c4499a9ca5ac7f26139a078e2f97473d to your computer and use it in GitHub Desktop.
Save KaiserWilhelm23/c4499a9ca5ac7f26139a078e2f97473d to your computer and use it in GitHub Desktop.
import webbrowser
import time
import urllib.parse
import console
ag = input('Please agree that this fetcher could fetch a website that you dont know. A unknown site could contain a virus or malware. y/n')
if ag.lower() == 'y':
clr = console.clear()
format(clr)
print('Version 0.1.0----Supports only .com sites')
print('---'*10)
def agreement():
url = input('Please type in a website name.')
com = '.com'
s = urllib.parse.quote(url)
print('fetching ', url)
print('---'*10)
time.sleep(3)
print('https://'+s+com)
import clipboard
clipboard.set(s+com)
print(s,'has beeen copied to your clipboard')
print('---'*20)
print()
agreement()
#----------------------------
agreement()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment