scrapinghub / dateparser

python parser for human readable dates
BSD 3-Clause "New" or "Revised" License
2.56k stars 465 forks source link

Parse 1mon ago #1123

Open serhii73 opened 1 year ago

serhii73 commented 1 year ago
from dateparser import parse

parse('1mon ago')

>> None
serhii73 commented 1 year ago

Be sure that after fixing this issue, The behavior of the dateparser should be:

In [2]: dateparser.parse('Mon, 05 Dec 2022 19:43:03 GMT') is None
Out[2]: False
serhii73 commented 1 year ago

https://github.com/scrapinghub/dateparser/pull/1121 - to understand the context