Thin wrapper around parsedatetime module.

Since there’s no upstream suppport for multiple locales, this wrapper exists.

Parameters:text (str) – Text to parse.
Returns:A parsed date/time object. Raises exception on failure.
Return type:datetime

Determine a two-letter country code based on an input.

The input may be a country code, a country name, etc.

The classic: date parsing, every which way.

Extract a domain name from a piece of text.

Parse and normalize an email address.

Returns None if this is not an email address.

Parse a phone number and return in international format.

If no valid phone number can be detected, None is returned. If a country code is supplied, this will be used to infer the prefix.

Clean and verify a URL.