htmldate icon indicating copy to clipboard operation
htmldate copied to clipboard

Add JSON output with more information to `find_date()`

Open adbar opened this issue 2 years ago • 0 comments

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 (?)

adbar avatar Jan 10 '24 13:01 adbar