Last active
July 28, 2020 03:11
-
-
Save KaiserWilhelm23/c4499a9ca5ac7f26139a078e2f97473d to your computer and use it in GitHub Desktop.
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 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