19 lines
408 B
Python
19 lines
408 B
Python
"""Télécharge le catalogue des sets LEGO depuis Rebrickable."""
|
|
|
|
from pathlib import Path
|
|
|
|
from lib.rebrickable.downloader import download_rebrickable_file
|
|
|
|
|
|
SETS_FILE_NAME = "sets.csv.gz"
|
|
DESTINATION_DIR = Path("data/raw")
|
|
|
|
|
|
def main() -> None:
|
|
"""Lance le téléchargement du fichier des sets."""
|
|
download_rebrickable_file(SETS_FILE_NAME, DESTINATION_DIR)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|