메소드 | 설명 | |
---|---|---|
CrawlDelay ( string userAgent ) : long |
Gets the number of milliseconds to wait between successive requests for this robot.
|
|
IsPathAllowed ( string userAgent, string path ) : bool |
Checks if the given user-agent can access the given relative path.
|
|
Load ( string content ) : |
Initializes a new RobotsTxt.Robots instance for the given robots.txt file content.
|
|
Robots ( string content ) : System |
Initializes a new RobotsTxt.Robots instance for the given robots.txt file content.
|
메소드 | 설명 | |
---|---|---|
isPathMatch ( string path, string rulePath ) : bool | ||
normalizePath ( string path ) : string | ||
readLines ( string lines ) : void |
public CrawlDelay ( string userAgent ) : long | ||
userAgent | string | User agent string. |
리턴 | long |
public IsPathAllowed ( string userAgent, string path ) : bool | ||
userAgent | string | User agent string. |
path | string | Relative path. |
리턴 | bool |
public Robots ( string content ) : System | ||
content | string | Content of the robots.txt file. |
리턴 | System |