@ML1012018ZHENG/

CultivatedImperturbableKeyboardmapping

Python

No description

fork
loading
Files
  • main.py
  • content.txt
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
import urllib.request
from bs4 import BeautifulSoup

def main():
    webUrl  = urllib.request.urlopen('https://schoolworkhelper.net/appearance-versus-reality-in-macbeth/')
    data = webUrl.read()
    soup = BeautifulSoup(data)
    mydef = soup.find("div", {"class": "content"})
    f = open("content.txt", "w")
    f.write(mydef.text)
    print(mydef.text)
    f.close()
main()