From f21db4cd339f69f361d6754fc1d12dd554bfc59a Mon Sep 17 00:00:00 2001 From: KYUNGMO TAK Date: Fri, 8 May 2026 09:59:34 +0900 Subject: [PATCH] Added my_crawling.py --- Custom_Lib.py | 5 ++++- my_crawling.py | 12 ++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 my_crawling.py diff --git a/Custom_Lib.py b/Custom_Lib.py index ae7679b..ff5c416 100644 --- a/Custom_Lib.py +++ b/Custom_Lib.py @@ -4,14 +4,17 @@ __version__ = "1.0.2" from custom_lib import my_file_config from custom_lib import my_logger from custom_lib import my_uuid -# 20260527 tak add my image +# 20260507 tak add my_image from custom_lib import my_image +# 20260508 tak add my_crawling +from custom_lib import my_crawling MODULES = [ my_file_config, my_logger, my_uuid, my_image, + my_crawling ] def print_versions(): diff --git a/my_crawling.py b/my_crawling.py new file mode 100644 index 0000000..75f8d76 --- /dev/null +++ b/my_crawling.py @@ -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 \ No newline at end of file