Added a new web scrapper

This commit is contained in:
janis
2022-05-02 15:39:09 +02:00
parent 0c46453064
commit be2b059b1d
8 changed files with 83 additions and 8 deletions

View File

@@ -0,0 +1,25 @@
import requests
import pyperclip as pc
while True:
website = str(input("Website to get the sourcecode from: "))
print(website)
if website == "q":
print("Leaving")
break
else:
res = requests.get(website)
print(res.text)
try:
pc.copy(res.text)
print("""
--------------------------
COPIED
--------------------------
""")
except:
pass