Adds `_fetch_page_content()`, which downloads a URL with a browser-like User-Agent and uses BeautifulSoup with the lxml parser to strip scripts, navigation, and other non-content markup, returning up to 3000 characters of readable text. The response validator now also compares generated replies against this scraped text, flagging named entities and claims that do not appear in the retrieved page content. Dependencies: adds beautifulsoup4==4.12.3 and pins lxml==5.3.0 for parser compatibility.
71 lines
1.1 KiB
C
71 lines
1.1 KiB
C
/*
|
|
* exsltconfig.h: compile-time version information for the EXSLT library
|
|
*
|
|
* See Copyright for the status of this software.
|
|
*
|
|
* daniel@veillard.com
|
|
*/
|
|
|
|
#ifndef __XML_EXSLTCONFIG_H__
|
|
#define __XML_EXSLTCONFIG_H__
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* LIBEXSLT_DOTTED_VERSION:
|
|
*
|
|
* the version string like "1.2.3"
|
|
*/
|
|
#define LIBEXSLT_DOTTED_VERSION "0.8.23"
|
|
|
|
/**
|
|
* LIBEXSLT_VERSION:
|
|
*
|
|
* the version number: 1.2.3 value is 10203
|
|
*/
|
|
#define LIBEXSLT_VERSION 823
|
|
|
|
/**
|
|
* LIBEXSLT_VERSION_STRING:
|
|
*
|
|
* the version number string, 1.2.3 value is "10203"
|
|
*/
|
|
#define LIBEXSLT_VERSION_STRING "823"
|
|
|
|
/**
|
|
* LIBEXSLT_VERSION_EXTRA:
|
|
*
|
|
* extra version information, used to show a Git commit description
|
|
*/
|
|
#define LIBEXSLT_VERSION_EXTRA ""
|
|
|
|
/**
|
|
* WITH_CRYPTO:
|
|
*
|
|
* Whether crypto support is configured into exslt
|
|
*/
|
|
#if 0
|
|
#define EXSLT_CRYPTO_ENABLED
|
|
#endif
|
|
|
|
/**
|
|
* ATTRIBUTE_UNUSED:
|
|
*
|
|
* This macro is used to flag unused function parameters to GCC
|
|
*/
|
|
#ifdef __GNUC__
|
|
#ifndef ATTRIBUTE_UNUSED
|
|
#define ATTRIBUTE_UNUSED __attribute__((unused))
|
|
#endif
|
|
#else
|
|
#define ATTRIBUTE_UNUSED
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __XML_EXSLTCONFIG_H__ */
|