Skip to content

Instantly share code, notes, and snippets.

@LeoHuckvale
LeoHuckvale / api_request.py
Last active September 30, 2025 13:19
Generic API request class based on Python Requests library
import json
from urllib.parse import urljoin
import logging
import requests
log = logging.getLogger(__name__)
log.setLevel(logging.DEBUG)