{"id":18417818,"url":"https://github.com/danieljdufour/date-extractor","last_synced_at":"2025-04-07T12:32:52.456Z","repository":{"id":54825754,"uuid":"47365323","full_name":"DanielJDufour/date-extractor","owner":"DanielJDufour","description":"Extract dates from text","archived":false,"fork":false,"pushed_at":"2021-01-27T05:27:02.000Z","size":91,"stargazers_count":64,"open_issues_count":18,"forks_count":13,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-18T19:54:39.869Z","etag":null,"topics":["arabic","chinese","date","datetime","extract-dates","extractor","french","iso","kurdish","nlp","parse","parser","python","sorani","taiwan","temporal","time"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DanielJDufour.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"DanielJDufour","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2015-12-03T22:40:57.000Z","updated_at":"2025-01-12T04:19:27.000Z","dependencies_parsed_at":"2022-08-14T04:00:49.075Z","dependency_job_id":null,"html_url":"https://github.com/DanielJDufour/date-extractor","commit_stats":null,"previous_names":[],"tags_count":40,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielJDufour%2Fdate-extractor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielJDufour%2Fdate-extractor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielJDufour%2Fdate-extractor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielJDufour%2Fdate-extractor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DanielJDufour","download_url":"https://codeload.github.com/DanielJDufour/date-extractor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247653393,"owners_count":20973821,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arabic","chinese","date","datetime","extract-dates","extractor","french","iso","kurdish","nlp","parse","parser","python","sorani","taiwan","temporal","time"],"created_at":"2024-11-06T04:11:29.630Z","updated_at":"2025-04-07T12:32:51.692Z","avatar_url":"https://github.com/DanielJDufour.png","language":"Python","funding_links":["https://github.com/sponsors/DanielJDufour"],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/DanielJDufour/date-extractor.svg?branch=master)](https://travis-ci.org/DanielJDufour/date-extractor)\n\n[![Requirements Status](https://requires.io/github/DanielJDufour/date-extractor/requirements.svg?branch=master)](https://requires.io/github/DanielJDufour/date-extractor/requirements/?branch=master)\n\n[![Hex.pm](https://img.shields.io/hexpm/l/plug.svg?maxAge=2592000?style=plastic)]()\n\n# date-extractor\ndate-extractor helps you extract dates from text\n\n# Installation\n```\npip3 install date-extractor\n```\n\n# Use\n```python\nfrom date_extractor import extract_dates\n\ntext = \"I arrived in that city on January 4, 1937\"\ndates = extract_dates(text)\n# [datetime.datetime(1937, 1, 4, 0, 0, tzinfo=\u003cUTC\u003e)]\n```\n\nDate extractor also works on dates with hours, minutes and seconds:\n```python\nfrom date_extractor import extract_date\n\ndate = extract_date(\"2018-06-07 16:31:54\")\n# datetime.datetime(2018, 6, 7, 16, 31, 54, tzinfo=\u003cUTC\u003e)\n```\n\n# Returning Precision\n```python\nfrom date_extractor import extract_date\n\ntext = \"I arrived in that city in 1937\"\ndate, precision = extract_date(text, return_precision=True)\n# precision = 'year'\n```\n\n\n# Features\n| Languages Supported |\n| ------------------- |\n| Arabic |\n| Chinese (incl. Taiwan) |\n| English |\n| French |\n| Sorani (Kurdish) |\n| Turkish |\n\n# Testing\nTo test the package run\n```\npython3 -m unittest date_extractor.tests.test\n```\n\n# Support\nContact Daniel Dufour at daniel.j.dufour@gmail.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanieljdufour%2Fdate-extractor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanieljdufour%2Fdate-extractor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanieljdufour%2Fdate-extractor/lists"}