Created
March 10, 2023 01:04
-
-
Save zzsza/c93a60235a86ec5cddfd3b596941c79c to your computer and use it in GitHub Desktop.
Sample Code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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