http://www.perlmonks.org?node_id=11113415


in reply to Re: Finding dates from web pages
in thread Finding dates from web pages

That works for some pages that have known meta fields like pubdate or time, but many web pages don't use them. I think the Python library applies some heuristics in such cases.

Replies are listed 'Best First'.
Re^3: Finding dates from web pages
by marto (Archbishop) on Feb 25, 2020 at 20:53 UTC

    "I think the Python library applies some heuristics in such cases"

    You could look at the Python code and implement the same thing in perl. Let me know if you get stuck.

      Looking at the code, that would appear to be quite an undertaking. It turns out it can be installed and run from the command line, so I will probably just go that route, though it will slow things down to load it every time it needs to be run.

        Well, it looks fairly well documented, should you encounter performance problems using the Python based command like utility.