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

667 B
Raw Blame

title: "Selector์™€ Selectors API ์ฐธ๊ณ  ๋ฌธ์„œ" description: "Selector์™€ Selectors์˜ HTML ํŒŒ์‹ฑ, ์š”์†Œ ์„ ํƒ, ๋ฐ์ดํ„ฐ ์ถ”์ถœ, ํƒ์ƒ‰, ์ ์‘ํ˜• ๊ฒ€์ƒ‰ ๋ฉ”์„œ๋“œ๋ฅผ ํ™•์ธํ•˜์„ธ์š”."

Selector ํด๋ž˜์Šค {#selector-class}

Selector๋Š” HTML์„ ํŒŒ์‹ฑํ•˜๊ณ  ์š”์†Œ๋ฅผ ์„ ํƒํ•˜๋Š” Scrapling์˜ ํ•ต์‹ฌ ํด๋ž˜์Šค์ž…๋‹ˆ๋‹ค.

Selector์˜ ๋ชจ๋“  ์ธ์ˆ˜, ์†์„ฑ, ๋ฉ”์„œ๋“œ๋ฅผ ์„ค๋ช…ํ•ฉ๋‹ˆ๋‹ค.

Selector๋Š” scrapling์—์„œ ์ง์ ‘ ๊ฐ€์ ธ์˜ฌ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค:

from scrapling.parser import Selector

::: scrapling.parser.Selector

handler: python
:docstring:

::: scrapling.parser.Selectors

handler: python
:docstring: