archiving community contributions on YouTube: unpublished captions, title and description translations and caption credits
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

7 lines
315 B

  1. import http3
  2. def get(url: str, params: tuple = (), backend="requests", mysession=None, http3headers: dict ={}):
  3. if backend == "requests":
  4. return mysession.get(url, params=params)
  5. elif backend == "http3":
  6. #print(http3headers)
  7. return http3.get(url, headers=http3headers, params=params)