Downloader

Problematic

How can we easily download one of our static files ?

Documentation

The tool to check the availability or syntax of domain, IP or URL.

██████╗ ██╗   ██╗███████╗██╗   ██╗███╗   ██╗ ██████╗███████╗██████╗ ██╗     ███████╗
██╔══██╗╚██╗ ██╔╝██╔════╝██║   ██║████╗  ██║██╔════╝██╔════╝██╔══██╗██║     ██╔════╝
██████╔╝ ╚████╔╝ █████╗  ██║   ██║██╔██╗ ██║██║     █████╗  ██████╔╝██║     █████╗
██╔═══╝   ╚██╔╝  ██╔══╝  ██║   ██║██║╚██╗██║██║     ██╔══╝  ██╔══██╗██║     ██╔══╝
██║        ██║   ██║     ╚██████╔╝██║ ╚████║╚██████╗███████╗██████╔╝███████╗███████╗
╚═╝        ╚═╝   ╚═╝      ╚═════╝ ╚═╝  ╚═══╝ ╚═════╝╚══════╝╚═════╝ ╚══════╝╚══════╝

Provides the downloaders of all our static files.

Author:
Nissar Chababy, @funilrys, contactTATAfunilrysTODTODcom
Special thanks:
https://pyfunceble.github.io/special-thanks.html
Contributors:
https://pyfunceble.github.io/contributors.html
Project link:
https://github.com/funilrys/PyFunceble
Project documentation:
https://pyfunceble.readthedocs.io/en/master/
Project homepage:
https://pyfunceble.github.io/

License:

Copyright 2017, 2018, 2019, 2020 Nissar Chababy

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

DownloaderBase()

class PyFunceble.downloader.base.DownloaderBase[source]

Provides the downloader base.

DOWNTIME_INDEX = None

Used to set/track the download time of the current file.

Return type:str
REDOWNLOAD_AFTER = 1

Used to set the redownload frequency in day.

Return type:int
get_all_downtimes()[source]

Provides all download times.

Return type:dict
get_downtime()[source]

Provides the download timestamp of the current DOWN_TIME_INDEX.

Return type:dict, None
is_downtime_set()[source]

Checks if the downtime is set for the current DOWNTIME_INDEX.

Return type:bool
is_last_download_expired()[source]

Checks if the last downloaded file is expired.

process()[source]

Process the download and returns the downloaded text.

Return type:str, None
save_downtimes()[source]

Saves all downtimes.

update_downtime()[source]

Updates the current download time.

ConfigDownloader()

class PyFunceble.downloader.config.ConfigDownloader[source]

Provides the dowloader of the production configuration file.

DirectoryStructureDownloader()

class PyFunceble.downloader.directory_structure.DirectoryStructureDownloader[source]

Provides the downloader of the directory structure file.

IANADownloader()

class PyFunceble.downloader.iana.IANADownloader[source]

Provides the downloader of the iana database file.

IPv4ReputationDownloader()

class PyFunceble.downloader.ipv4_reputation.IPv4ReputationDownloader[source]

Provides the downloader of the IPv4 reputation file.

PublicSuffixDownloader()

class PyFunceble.downloader.publicsuffix.PublicSuffixDownloader[source]

Provides the downloader of the public suffix list file.