Skip to content

๐Ÿ•ท๏ธ 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

683 B
Raw Blame

title: "Response API ์ฐธ๊ณ  ๋ฌธ์„œ" description: "Response์˜ ์ƒํƒœ, ํ—ค๋”, ๋ณธ๋ฌธ, ๋ฉ”ํƒ€๋ฐ์ดํ„ฐ, Markdown ๋ณ€ํ™˜, follow๋ฅผ ํ™•์ธํ•˜์„ธ์š”. Selector์—์„œ ์ƒ์†ํ•œ ์ถ”์ถœ ๋ฉ”์„œ๋“œ๋„ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค."

Response ํด๋ž˜์Šค {#response-class}

Response๋Š” ๋ชจ๋“  Fetcher๊ฐ€ ๋ฐ˜ํ™˜ํ•˜๋Š” HTTP ์‘๋‹ต์„ ๋‚˜ํƒ€๋ƒ…๋‹ˆ๋‹ค. ์ƒํƒœ, ํ—ค๋”, ๋ณธ๋ฌธ, ์ฟ ํ‚ค๋ฅผ ์ฝ์„ ์ˆ˜ ์žˆ๊ณ  Selector์—์„œ ์ƒ์†ํ•œ ํŒŒ์‹ฑ ๊ธฐ๋Šฅ๋„ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

Response ํด๋ž˜์Šค๋Š” ๋‹ค์Œ์ฒ˜๋Ÿผ ๊ฐ€์ ธ์˜ต๋‹ˆ๋‹ค:

from scrapling.engines.toolbelt.custom import Response

::: scrapling.engines.toolbelt.custom.Response

handler: python
:docstring: