Downloader

Problematic

How can we easily download one of our static files ?

Documentation

The tool to check the availability or syntax of domains, IPv4, IPv6 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:

MIT License

Copyright (c) 2017, 2018, 2019, 2020 Nissar Chababy

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

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.

DBTypeDownloader()

class PyFunceble.downloader.db_type.DBTypeDownloader[source]

Provides the downloader of the desired database type 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.