date-extractor helps you extract dates from text
pip install pytz
pip install date-extractor
from date_extractor import extract_dates
text = "I arrived in that city on January 4, 1937"
dates = extract_dates(text)
Languages Supported |
---|
Arabic |
English |
French |
Sorani (Kurdish) |
Turkish |
To test the package run
python -m unittest date_extractor.tests.test
Works on Python 2 and 3!