scrapinghub / dateparser

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

Add support for month abbreviations in search_dates #843

Open surkova opened 3 years ago

surkova commented 3 years ago

I know it's not the latest version, but nothing in the changelog indicates this behavior should be different on 1.0.0.

Python 3.8.0 (default, Oct 25 2019, 13:23:36) 
>>> dateparser.__version__
'0.7.6'
>>> from dateparser.search import search_dates
>>> search_dates("31 Jul. 1999")
[('31 Jul', datetime.datetime(2020, 7, 31, 0, 0)), ('1999', datetime.datetime(1999, 7, 31, 0, 0))]
noviluni commented 3 years ago

Hi @surkova You are right, this is not fixed in 1.0.0, however, with the new version we added this warning in the docs:

Warning

Support for searching dates is really limited and needs a lot of improvement, we look forward to community’s contribution to get better on that part. See “Contributing”.

https://dateparser.readthedocs.io/en/latest/introduction.html#search-for-dates-in-longer-chunks-of-text

We have been tagging all the search_dates issues with this tag: https://github.com/scrapinghub/dateparser/labels/search_dates in order to handle all of them together in the near future. Thank you for your feedback