feat: add comments

This commit is contained in:
firedotguy
2026-01-29 20:09:16 +03:00
parent 6441ffabf1
commit b56598f893
3 changed files with 45 additions and 3 deletions

View File

@@ -3,8 +3,8 @@ from requests import Session
s = Session()
def fetch(token: str, method: str, url: str):
res = eval(f's.{method}')(f'https://итд.com/api/{url}', headers={
def fetch(token: str, method: str, url: str, params: dict = {}):
res = eval(f's.{method}')(f'https://итд.com/api/{url}', params=params, headers={
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
"Accept-Language": "ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3",
"Accept-Encoding": "gzip, deflate, br, zstd",