mirror of
https://github.com/Paillat-dev/discord-emojis.git
synced 2026-01-02 00:56:19 +00:00
- Updated `pyproject.toml` to include configuration for `ruff` linting tool. - Improved `download_build.py` by adding a docstring to the `dowload` function. - Refactored `__main__.py` for clarity and consistency in path handling. - Enhanced `extract.py` with detailed docstrings for error classes and functions.
18 lines
493 B
Python
18 lines
493 B
Python
# Copyright (c) Paillat-dev
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
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.
|
|
"""
|
|
print("Downloading the latest discord build")
|
|
response = requests.get(URL, timeout=10)
|
|
response.raise_for_status()
|
|
return response.text
|