Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Finding dates from web pages

by cormanaz (Chaplain)
on Feb 25, 2020 at 20:39 UTC ( #11113415=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11113415]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2020-07-14 09:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?