dateparser
dateparser copied to clipboard
python parser for human readable dates
Thank you for maintaining this very useful library. I've just improved Japanese support a little. Please check if this is ok.
Fixes https://github.com/scrapinghub/dateparser/issues/1052 Based on https://github.com/scrapinghub/dateparser/issues/1045#issuecomment-1129846022
Upgraded pip packages; ``` (env) blurry:>$ pip freeze | grep dateparser dateparser==1.1.1 (env) blurry:>$ pip freeze | grep regex regex==2022.3.15 ``` dateparser.parse raises the following exception: ``` Python 3.8.10 (default,...
Hi! When do you plan to create a new release? I'm asking this because our log files containing warnings which are fixed by #1062, whose commit has already reached master....
# Reimplementing and simplifying `search_dates` A reimplemented and simplified `search_dates` which more directly uses `dateparser.parse`, improves accuracy and fixes many bugs New Feature: - `search_first_date` - searches and returns the...
If a date already contains UTC offset (i.e. time zone information) it is not possible to supply a date_formats argument to the parse function: ```python >>> import dateparser >>> foo...
**dateparser** is a fantastic tool to calculate a date given a literal expression like "3 years and 6 months". However, it does not seem possible to leverage the syntactic parser...
``` In [37]: dateparser.parse(date_string="11 de a") Out[37]: datetime.datetime( year=2011, month=7, day=14, hour=15, minute=57, second=17, microsecond=334749 ) ``` It happens a lot with strings of the format "\d\d \W\ \W\W", and...
The main aim is to cover shorthand relative dates when relating to "one". Similar to English, where 'a' is used, Slovak leaves out the slot entirely. So relative date 'o...
SECURITY: bad regex pattern in 'dateparser/languages/locale.py' will cause 'ReDos' security problem.
#### Problem description i found one bad regex pattern in 'dateparser/languages/locale.py' ``` r'(?:[¡¿]+|[\.!?;…\r\n]+(?:\s|$))+', # Spanish ``` those pattern will cause 'ReDos' security problem, proof of code like below ``` import...