๐ท๏ธ 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: "Scrapling CLI: ํฐ๋ฏธ๋์์ ์คํฌ๋ํํ๊ธฐ" description: "Scrapling ํฐ๋ฏธ๋ ๋๊ตฌ๋ฅผ ์ค์นํ๊ณ ์ถ์ถ ๋ช ๋ น, ๋ํํ ์ ธ, MCP ์๋ฒ ์ค์์ ์ ํํ์ธ์. ์์ ์ ๋ง๋ ์๋ด๋ฅผ ํ์ธํ ์ ์์ต๋๋ค."
๋ช ๋ น์ค ์ธํฐํ์ด์ค {#command-line-interface}
Scrapling v0.3๋ถํฐ ๋ค์ ์ธ ๊ฐ์ง ์ฃผ์ ๊ธฐ๋ฅ์ ๊ฐ์ถ ๋ช ๋ น์ค ์ธํฐํ์ด์ค๋ฅผ ์ ๊ณตํฉ๋๋ค.
- ๋ํํ ์ ธ: IPython ๊ธฐ๋ฐ ์น ์คํฌ๋ํ ์ ธ์ ๋๋ค. ํธ๋ฆฌํ ๋จ์ถ ํจ์์ ๋๊ตฌ๋ฅผ ์ ๊ณตํฉ๋๋ค.
- ์ถ์ถ ๋ช ๋ น: ํ๋ก๊ทธ๋๋ฐ ์์ด ํฐ๋ฏธ๋์์ ์น์ฌ์ดํธ๋ฅผ ์คํฌ๋ํํฉ๋๋ค.
- ์ ํธ๋ฆฌํฐ ๋ช ๋ น: ์ค์น์ ๊ด๋ฆฌ๋ฅผ ์ํ ๋๊ตฌ์ ๋๋ค.
# Launch interactive shell
scrapling shell
# Convert the content of a page to markdown and save it to a file
scrapling extract get "https://example.com" content.md
# Get help for any command
scrapling --help
scrapling extract --help
์๊ตฌ ์ฌํญ {#requirements}
์ด ์น์
์ ๊ธฐ๋ฅ์ ์ฌ์ฉํ๋ ค๋ฉด shell ์ถ๊ฐ ์์กด์ฑ ๊ทธ๋ฃน์ ์ค์นํ์ธ์.
pip install "scrapling[shell]"
๋ธ๋ผ์ฐ์ ๋ก ํ์ด์ง๋ฅผ ๊ฐ์ ธ์ค๋ ค๋ฉด ๋ธ๋ผ์ฐ์ ์์กด์ฑ๋ ์ค์นํ์ธ์.
scrapling install
Chromium๊ณผ ์์คํ ์์กด์ฑ์ ๋ค์ด๋ก๋ํ๊ณ TLD ๋ชฉ๋ก์ ๊ฐฑ์ ํฉ๋๋ค. HTTP ์์ฒญ๋ง ์ฌ์ฉํ ๋๋ ์ด ๋จ๊ณ๊ฐ ํ์ํ์ง ์์ต๋๋ค.