๐ท๏ธ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
Python aiai-scrapingautomationcrawlercrawlingcrawling-pythondatadata-extractionmcpmcp-serverplaywrightpythonscrapingselectorsstealthweb-scraperweb-scrapingweb-scraping-pythonwebscrapingxpath
title: "Python HTML ํ์ ์ฑ๋ฅ ๋น๊ต: Scrapling๊ณผ ๋ค๋ฅธ ๋ผ์ด๋ธ๋ฌ๋ฆฌ" description: "HTML ํ์ฑ, ํ ์คํธ ์ถ์ถ, ๋น์ทํ ์์ ์ฐพ๊ธฐ์์ Scrapling๊ณผ ๋ค๋ฅธ Python ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ์ฑ๋ฅ์ ๋น๊ตํฉ๋๋ค."
์ฑ๋ฅ ํ ์คํธ {#performance-benchmarks}
Scrapling์ ๊ฐ๋ ฅํ ๋ฟ ์๋๋ผ ๋งค์ฐ ๋น ๋ฆ ๋๋ค. ๋ค์ ํ ์คํธ๋ Scrapling ํ์์ ๋๋ฆฌ ์ฐ์ด๋ ๋ค๋ฅธ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ๋น๊ตํฉ๋๋ค.
ํ ์คํธ ์ถ์ถ ์๋: ์ค์ฒฉ ์์ 5,000๊ฐ {#text-extraction-speed-test-5000-nested-elements}
| # | ๋ผ์ด๋ธ๋ฌ๋ฆฌ | ์๊ฐ(ms) | Scrapling ๋๋น |
|---|---|---|---|
| 1 | Scrapling | 1.99 | 1.0x |
| 2 | Parsel/Scrapy | 2.06 | 1.035 |
| 3 | Lxml ๋จ๋ | 2.56 | 1.286 |
| 4 | PyQuery | 23.98 | ~12x |
| 5 | Selectolax | 197.02 | ~99x |
| 6 | MechanicalSoup | 1545.15 | ~776.5x |
| 7 | BS4 + Lxml | 1562.1 | ~785.0x |
| 8 | BS4 + html5lib | 3412.73 | ~1714.9x |
๋น์ทํ ์์ ์ฐพ๊ธฐ์ ํ ์คํธ ๊ฒ์ {#element-similarity-text-search-performance}
Scrapling์ ์ ์ํ ์์ ๊ฒ์์ ๋ค๋ฅธ ๋ฐฉ๋ฒ๋ณด๋ค ํจ์ฌ ๋น ๋ฆ ๋๋ค:
| ๋ผ์ด๋ธ๋ฌ๋ฆฌ | ์๊ฐ(ms) | Scrapling ๋๋น |
|---|---|---|
| Scrapling | 2.3 | 1.0x |
| AutoScraper | 12.58 | 5.47x |
๊ฐ ๊ฒฐ๊ณผ๋ ์๊ฐ์ ์ธก์ ํ 100ํ ์คํ์ ํ๊ท ์ ๋๋ค. ์ธก์ ๋ฐฉ๋ฒ์ benchmarks.py๋ฅผ ํ์ธํ์ธ์.