extract-date
Documentation / extractor/html-to-cite/extract-date/extract-date
CLASS_ATTRS​
const CLASS_ATTRS: Set<string>;
Defined in: extractor/html-to-cite/extract-date/extract-date.js:202
DATE_ATTRIBUTES​
const DATE_ATTRIBUTES: Set<string>;
Defined in: extractor/html-to-cite/extract-date/extract-date.js:81
ITEMPROP_ATTRS​
const ITEMPROP_ATTRS: Set<string>;
Defined in: extractor/html-to-cite/extract-date/extract-date.js:196
ITEMPROP_ATTRS_MODIFIED​
const ITEMPROP_ATTRS_MODIFIED: Set<string>;
Defined in: extractor/html-to-cite/extract-date/extract-date.js:193
ITEMPROP_ATTRS_ORIGINAL​
const ITEMPROP_ATTRS_ORIGINAL: Set<string>;
Defined in: extractor/html-to-cite/extract-date/extract-date.js:187
NAME_MODIFIED​
const NAME_MODIFIED: Set<string>;
Defined in: extractor/html-to-cite/extract-date/extract-date.js:156
NON_DIGITS_REGEX​
const NON_DIGITS_REGEX: RegExp;
Defined in: extractor/html-to-cite/extract-date/extract-date.js:205
PROPERTY_MODIFIED​
const PROPERTY_MODIFIED: Set<string>;
Defined in: extractor/html-to-cite/extract-date/extract-date.js:166
extractDate()​
function extractDate(
htmlobject: Document,
extensive_search?: boolean,
original_date?: boolean,
outputformat?: string,
url?: string,
verbose?: boolean,
min_date?: Date,
max_date?: Date,
deferred_url_extractor?: boolean): string;
Defined in: extractor/html-to-cite/extract-date/extract-date.js:957
Extract date from document using various methods
Parameters​
Parameter | Type | Default value | Description |
---|---|---|---|
|
|
| DOM object with article content |
|
|
| perform extensive search if true |
|
|
| return original date if true |
|
|
| output format |
|
|
| URL of the page |
|
|
| log debug messages if true |
|
|
| minimum date to consider |
|
|
| maximum date to consider |
|
|
| if true, do not extract date from URL |
Returns​
string
Extracted date or null if not found
Author​
ai-research-agent (2024) Based on Barbaresi (2020)