Files
octo-updater/src/news_test.py
T

40 lines
706 B
Python
Executable File

#!/usr/bin/env python3
import json
import hashlib
import os
import sys
import ssl
import re
import subprocess
import urllib.request
from urllib.parse import urlsplit
import shutil
import stat
import struct
import time
import math
import threading
import queue
from functools import cache
from pathlib import Path
import urllib.error
import requests
from . import config
from . import ui
NEWS_FEATURED_URL = f"{config.SERVER}/forum/octonews.php?forum=2&mode=full"
PATCHNOTES_URL = f"{config.SERVER}/forum/octonews.php?mode=list&forum=4&limit=8"
#print(NEWS_FEATURED_URL)
#print(PATCHNOTES_URL)
news = ui.fetch_featured_post()
patch_notes = ui.fetch_patch_notes()
print(patch_notes)
print(news)