https://realpython.com/beautiful-soup-web-scraper-python/ Beautiful Soup: Build a Web Scraper With Python – Real PythonIn this tutorial, you'll walk through the main steps of the web scraping process. You'll learn how to write a script that uses Python's Requests library to scrape data from a website. You'll also use Beautiful Soup to extract the specific pieces of informarealpython.com ..
BeautifulSoup과 MechanicalSoup의 주요 차이점1. 기본 목적과 기능 - BeautifulSoup - HTML/XML 파싱에 특화된 라이브러리입니다 - 정적 웹페이지의 데이터를 추출하고 분석하는데 최적화되어 있습니다 - DOM 구조를 탐색하고 데이터를 추출하는 것이 주요 기능입니다 - MechanicalSoup - 브라우저 자동화에 특화된 라이브러리입니다 - 실제 브라우저처럼 웹사이트와 상호작용이 가능합니다 - BeautifulSoup을 내부적으로 사용하며, 추가로 브라우저 기능을 제공합니다 2. 주요 사용 사례 - BeautifulSoup - 정적 웹페이지에서 데이터 스크래핑 - HTML/XML 문서 파싱 및 데이터 추출 - 웹페이지 구조 분석 - M..
Local 실행할 때는 문제없던 앱이 pyinstaller로 변환하고 나면 에러가 발생한다.Failed to convert files: Error converting test.docx: docx2pdf Conversion failed: 'NoneType' object has no attribute 'write' ** Pyinstaller로 Non-windowd 옵션으로 변환하면 porcess를 보여주는 라이브러리의 결과 생성을 뿌려줄 곳이 없어지면서 발생하는 오류임 import osimport docx2pdf# 1. 출력 폴더가 존재하는지 확인하고 없으면 생성output_folder = "_convert"if not os.path.exists(output_folder): os.makedirs(..
https://python.langchain.com/api_reference/reference.html LangChain Python API Reference — 🦜🔗 LangChain documentationlangchain-text-splitters: 0.3.2python.langchain.com Claude.aihttps://github.com/langchain-ai/langchain/tree/master/libs/partners/anthropic# pip install -U langchain-anthropicfrom langchain_anthropic import ChatAnthropicfrom langchain_core.messages import AIMessage, HumanMess..