PHP 클래스 PicoFeed\Scraper\Scraper

저자: Frederic Guillot
상속: extends PicoFeed\Base
파일 보기 프로젝트 열기: fguillot/picofeed 1 사용 예제들

공개 메소드들

메소드 설명
disableCandidateParser ( ) : Scraper Disable candidates parsing.
download ( ) : boolean Download the HTML content.
execute ( $pageContent = '', $recursionDepth ) Execute the scraper.
getEncoding ( ) : string Get encoding.
getFilteredContent ( ) : string Get filtered relevant content.
getParser ( ) : PicoFeed\Scraper\ParserInterface Get the parser.
getRawContent ( ) : string Get raw content (unfiltered).
getRelevantContent ( ) : string Get relevant content.
getUrl ( ) : string Get URL to download.
hasRelevantContent ( ) : boolean Return true if the scraper found relevant content.
prepareHtml ( ) Normalize encoding and strip head tag.
setEncoding ( string $encoding ) : Scraper Set encoding.
setRawContent ( string $html ) : Scraper Set raw content (unfiltered).
setUrl ( string $url ) : Scraper Set URL to download.

메소드 상세

disableCandidateParser() 공개 메소드

Disable candidates parsing.
public disableCandidateParser ( ) : Scraper
리턴 Scraper

download() 공개 메소드

Download the HTML content.
public download ( ) : boolean
리턴 boolean

execute() 공개 메소드

Execute the scraper.
public execute ( $pageContent = '', $recursionDepth )

getEncoding() 공개 메소드

Get encoding.
public getEncoding ( ) : string
리턴 string

getFilteredContent() 공개 메소드

Get filtered relevant content.
public getFilteredContent ( ) : string
리턴 string

getParser() 공개 메소드

Get the parser.
public getParser ( ) : PicoFeed\Scraper\ParserInterface
리턴 PicoFeed\Scraper\ParserInterface

getRawContent() 공개 메소드

Get raw content (unfiltered).
public getRawContent ( ) : string
리턴 string

getRelevantContent() 공개 메소드

Get relevant content.
public getRelevantContent ( ) : string
리턴 string

getUrl() 공개 메소드

Get URL to download.
public getUrl ( ) : string
리턴 string

hasRelevantContent() 공개 메소드

Return true if the scraper found relevant content.
public hasRelevantContent ( ) : boolean
리턴 boolean

prepareHtml() 공개 메소드

Normalize encoding and strip head tag.
public prepareHtml ( )

setEncoding() 공개 메소드

Set encoding.
public setEncoding ( string $encoding ) : Scraper
$encoding string
리턴 Scraper

setRawContent() 공개 메소드

Set raw content (unfiltered).
public setRawContent ( string $html ) : Scraper
$html string
리턴 Scraper

setUrl() 공개 메소드

Set URL to download.
public setUrl ( string $url ) : Scraper
$url string URL
리턴 Scraper