공부

[Python] Beautiful Soup

승가비 2020. 2. 27. 01:17
728x90
pip install beautifulsoup4



from bs4 import BeautifulSoup
import urllib.request
import urllib.parse

with urllib.request.urlopen(web_url) as response:
    html = response.read()
    soup = BeautifulSoup(html, 'html.parser')

https://twpower.github.io/84-how-to-use-beautiful-soup

728x90