Skip to content

Instantly share code, notes, and snippets.

View rafrafek's full-sized avatar

Rafał rafrafek

  • Central European Time (CET)
  • 05:14 (UTC +02:00)
View GitHub Profile
import json
from tkinter import Tk
from tkinter.ttk import Button, Frame, Label
from typing import Callable, Literal
from urllib.request import urlopen
FetchDataType = dict[Literal["q"] | Literal["a"], str]
def parse_zen_data(data: bytes) -> FetchDataType: