Skip to content

Constants

constants

Defines constants with valid parameter values expected by the Scrape.do API

Attributes:

Name Type Description
_SUPER_SUPPORTED_COUNTRIES set[str]

The complete list of ISO 3166-1 alpha-2 country codes supported when super=True.

_DATACENTER_SUPPORTED_COUNTRIES set[str]

The restricted list of ISO 3166-1 alpha-2 country codes supported when super=False.

_ZIPCODE_FORMATS dict[str, Pattern]

Pre-compiled regular expressions mapping lowercase country codes to their strict regional postal code formats.

_SUPER_ONLY_COUNTRIES set[str]

ISO 3166-1 alpha-2 country codes supported only when super=True

_ZIPCODE_ALLOWED_COUNTRIES set[str]

Set of country codes for which the postal_code parameter is allowed

_ZIPCODE_NOT_ALLOWED_COUNTRIES set[str]

Set of country codes for which the postal_code parameter is not allowed