libwget-robots(3) | Library Functions Manual | libwget-robots(3) |
libwget-robots - Robots Exclusion file parser
struct wget_robots_st
int wget_robots_parse (wget_robots **_robots, const
char *data, const char *client)
void wget_robots_free (wget_robots **robots)
int wget_robots_get_path_count (wget_robots *robots)
wget_string * wget_robots_get_path (wget_robots *robots,
int index)
int wget_robots_get_sitemap_count (wget_robots *robots)
const char * wget_robots_get_sitemap (wget_robots *robots, int
index)
The purpose of this set of functions is to parse a Robots Exclusion Standard file into a data structure for easy access.
Parameters
Returns
The function parses the robots.txt data and returns a ROBOTS structure including a list of the disallowed paths and including a list of the sitemap files.
The ROBOTS structure has to be freed by calling wget_robots_free().
Parameters
wget_robots_free() free's the formerly allocated wget_robots structure.
Parameters
Returns
Parameters
Returns
Parameters
Returns
Parameters
Returns
Generated automatically by Doxygen for wget2 from the source code.
Version 2.1.0 | wget2 |