from zlib_dl import ProxyManager, ZLibSession
mgr = ProxyManager("proxies.txt", verbose=True)
mgr.rotate()
s = ZLibSession(proxy_url=mgr.get_current_proxy_url(), verbose=True)
res, msg = s.download_file("/dl/22909249/a93325", "test.epub")
print(msg)
import os; os.path.exists("test.epub") and print("Saved epub size:", os.path.getsize("test.epub"))
