티스토리 뷰

공부

[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

'공부' 카테고리의 다른 글

[SQL] split & get array index 0  (0) 2020.03.14
[sh] sudo pkill cron  (0) 2020.03.10
[Python] *args  (0) 2020.02.27
Install MongoDB Community Edition on macOS  (0) 2020.02.27
[JS] RegExp match & test  (0) 2020.02.27
댓글