rilinic-cli Development Log 20251027

Implement functional module separation,

including token retrieval module, file list retrieval module, and file download module.

However, the download module is not yet completed; the downloaded content is a strange file of only 3KB.

But I already know how to solve it and will continue working on it tomorrow.

https://github.com/B-Beginner/rilinic_cli/commit/3f490ef638e2977ec6371cba6d0c8bc28c3f97ad

Currently, you can bypass verify to download, it seems to be an SSL certificate issue. I will submit a CDN ticket tomorrow.

import os
import requests
import zipfile
from io import BytesIO


# Download URL
raw_url = "https://test.com/rilinic/data/v1.1.3-20251023-143757.zip"

# Download ZIP file
print("Downloading file...")
response = requests.get(raw_url, 
                        # verify=False,
                        )
response.raise_for_status()  # Raises an exception if the request failed

# # Unzip ZIP file
# print("Unzipping file...")
# with zipfile.ZipFile(BytesIO(response.content)) as zip_ref:
#     zip_ref.extractall("rilinic_data")  # Extract to specified folder

print("Download complete ✅")