We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dateparser cannot recognize Finnish dates with "klo" inside.
import dateparser dateparser.parse("28 maalis klo 9:37")
The above code should return datetime.datetime(2025, 3, 28, 9, 37)
The above code returns None.
None
Notice that dateparser correctly deals with forms without "klo":
>>> dateparser.parse("28 maalis 9:37") datetime.datetime(2025, 3, 28, 9, 37)
It also works when "klo" is added to SKIP_TOKENS settings:
>>> dateparser.parse("28 maalis klo 9:37", settings={"SKIP_TOKENS":["klo"]}) datetime.datetime(2025, 3, 28, 9, 37)
The text was updated successfully, but these errors were encountered:
Finnish: add 'klo' preposition to skip tokens. Fixes scrapinghub#1268
2f64af9
Successfully merging a pull request may close this issue.
dateparser cannot recognize Finnish dates with "klo" inside.
Code that reproduces the issue
Expected behavior
The above code should return datetime.datetime(2025, 3, 28, 9, 37)
Observed behavior
The above code returns
None
.Notice that dateparser correctly deals with forms without "klo":
It also works when "klo" is added to SKIP_TOKENS settings:
The text was updated successfully, but these errors were encountered: