summaryrefslogtreecommitdiff
path: root/URLget.py
diff options
context:
space:
mode:
authorPawky Languish2025-04-19 19:07:38 +0000
committerPawky Languish2025-04-19 19:07:38 +0000
commitf4fb34dde6b03fdb49f71476d587c5c7f986b565 (patch)
treeef8cc174c413dcd766754bc51c52b9a2fc328e5c /URLget.py
parent12062621d6d67adb8abee962f4201e2d5196f55b (diff)
idk some changes lol, formatting and stuff
Diffstat (limited to 'URLget.py')
-rw-r--r--URLget.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/URLget.py b/URLget.py
index 701b10d..0f3f7c7 100644
--- a/URLget.py
+++ b/URLget.py
@@ -1,4 +1,6 @@
import sys
+
+
class URLgetException(Exception):
pass
@@ -7,7 +9,8 @@ try:
from curl_cffi import requests
# from curl_cffi.requests.exceptions import HTTPError
- if sys.stderr.isatty(): print("using curl_cffi",file=sys.stderr)
+ if sys.stderr.isatty():
+ print("using curl_cffi", file=sys.stderr)
def urlget(url):
# probably want to impersonate "chrome", "safari" or "safari_ios"
@@ -25,7 +28,8 @@ except ModuleNotFoundError:
from urllib.request import Request, urlopen
# from urllib.error import HTTPError
- if sys.stderr.isatty(): print("using urllib.request",file=sys.stderr)
+ if sys.stderr.isatty():
+ print("using urllib.request", file=sys.stderr)
def urlget(url):
# update as needed I guess