Skip to content

Instantly share code, notes, and snippets.

@zzsza
Created March 10, 2023 01:04
Show Gist options
  • Save zzsza/c93a60235a86ec5cddfd3b596941c79c to your computer and use it in GitHub Desktop.
Save zzsza/c93a60235a86ec5cddfd3b596941c79c to your computer and use it in GitHub Desktop.
Sample Code
import requests
from bs4 import BeautifulSoup
def parsing_beautifulsoup(url):
"""
뷰티풀 수프로 파싱하는 함수
:param url: paring할 URL
:return: BeautifulSoup soup Object
"""
data = requests.get(url)
html = data.text
return BeautifulSoup(html, 'html.parser')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment