Most efficient method to count (yet)

This commit is contained in:
akamhy
2020-05-08 09:47:13 +05:30
committed by GitHub
parent e9d010c793
commit 42ac399362

View File

@@ -140,4 +140,4 @@ def total_archives(url, UA=default_UA):
except HTTPError as e: except HTTPError as e:
handle_HTTPError(e) handle_HTTPError(e)
return (len(json.loads(response.read()))) return str(response.read()).count(",") # Most efficient method to count (yet)