Skip to content

Instantly share code, notes, and snippets.

@LeoHuckvale
LeoHuckvale / api_request.py
Last active January 31, 2025 22:26
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)