summaryrefslogtreecommitdiff
path: root/URLget.py
diff options
context:
space:
mode:
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