fix(feeds): remove redundant network call
doc_response already holds the response object for a previous
requests.get(url) call
@@ -229,7 +229,7 @@ class Feeds(Client):
if encoding.lower() == 'windows-31j':
encoding = 'cp932'
- content = requests.get(url).content
+ content = doc_response.content
if 'compressionAlgorithm' in response.payload:
return zlib.decompress(bytearray(content), 15 + 32).decode(encoding)
return content.decode(encoding)
