Initial commit

This commit is contained in:
talksik
2021-10-17 11:14:40 -06:00
commit 775c88f380
6 changed files with 258 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
from bs4 import BeautifulSoup
import requests
import sys
login_URL = "https://edgewonk.app/login"
page = requests.get(login_URL)
print('This message will be displayed on the screen.')
original_stdout = sys.stdout # Save a reference to the original standard output
# output to file in same directory
with open('output.html', 'w') as f:
sys.stdout = f # Change the standard output to the file we created.
print('This message will be written to a file.')
print(page.text)
sys.stdout = original_stdout # Reset the standard output to its original value