Leibniz-HBI / newsfeedback

Tool for extracting and saving news article metadata (and optionally content) at regular intervals.
MIT License
3 stars 0 forks source link

Resolve date_parser/pyzt warning #4

Closed rwinterschlaf closed 1 year ago

rwinterschlaf commented 2 years ago

PytzUsageWarning: The localize method is no longer necessary, as this time zone supports the fold attribute (PEP 495). For more details on migrating to a PEP 495-compliant implementation, see https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html date_obj = stz.localize(date_obj)

Error taken from the tool testing private repository. Doesn't impact functionality but is quite annoying. So far has only plopped up when extracting metadata from https://www.badische-zeitung.de/

FlxVctr commented 2 years ago

I guess this is coming from Trafilatura, trying to extract dates? Maybe report to their repo, if you can confirm. If so, link issue here and close this one.

rwinterschlaf commented 1 year ago

Fixed thanks to updating dateparser.