Files
discord-emojis/src/download_build.py

18 lines
493 B
Python
Raw Normal View History

# Copyright (c) Paillat-dev
# SPDX-License-Identifier: MIT
2025-05-03 16:22:11 +02:00
import requests
URL = "https://raw.githubusercontent.com/Discord-Datamining/Discord-Datamining/refs/heads/master/current.js"
def dowload() -> str:
"""Download the latest discord build from the datamining repository.
Returns the content of the file as a string.
"""
2025-05-03 16:22:11 +02:00
print("Downloading the latest discord build")
response = requests.get(URL, timeout=10)
2025-05-03 16:22:11 +02:00
response.raise_for_status()
return response.text