Added my_crawling.py

This commit is contained in:
2026-05-08 09:59:34 +09:00
parent 37d2505daf
commit f21db4cd33
2 changed files with 16 additions and 1 deletions
+12
View File
@@ -0,0 +1,12 @@
__version__ = "1.0.0"
# --- package ---
# --- crawling ---
from bs4 import BeautifulSoup
from urllib import request
def get_lxml(target_url):
request_url = request.urlopen(target_url)
bs = BeautifulSoup(request_url, "lxml", from_encoding='utf-8')
return bs