Skip to content

Instantly share code, notes, and snippets.

@hwooson
hwooson / mango_example.ipynb
Created November 22, 2019 00:25
web scraping hands on
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import requests
from bs4 import BeautifulSoup
url = "http://www.naver.com"
r = requests.get(url)
print(r.status_code)
soup = BeautifulSoup(r.text, 'html.parser')
news_cast_div = soup.find('div', id='news_cast')