newspaper4k icon indicating copy to clipboard operation
newspaper4k copied to clipboard

Extractor get published date function modification

Open AndyTheFactory opened this issue 2 years ago • 0 comments

Issue by vashis Thu May 17 09:53:00 2018 Originally opened as https://github.com/codelucas/newspaper/issues/567


Since that function takes date from the url first and later from the described tags from the xpath. Its giving wrong date.

You can check with this example url http://www.newsweek.com/2018/05/18/navy-seals-seal-team-6-left-behind-die-operation-anaconda-slabinski-chapman-912343.html

My suggestion is switch the two methods. Get date first from the tags/attributes and then from the url.

AndyTheFactory avatar Oct 24 '23 12:10 AndyTheFactory