So far find_date() returns a string containing the result. To add context another format is required, JSON is a good candidate.
An optional parameter like as_json=True could allow for the following additional info:
- input (url or HTML document)
- date format
- other candidates (?)
- source element or type (?)
So far
find_date()returns a string containing the result. To add context another format is required, JSON is a good candidate.An optional parameter like
as_json=Truecould allow for the following additional info: