From ab6abe786517af8141f14de66630a3a6765c4b27 Mon Sep 17 00:00:00 2001 From: Nicolas Palacio Date: Tue, 19 Nov 2024 13:11:44 +0100 Subject: [PATCH] Finished implementing new cache/download manager in `inputs.abs` --- pypath/inputs/abs.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pypath/inputs/abs.py b/pypath/inputs/abs.py index b54c35000..b24b6ee27 100644 --- a/pypath/inputs/abs.py +++ b/pypath/inputs/abs.py @@ -33,13 +33,18 @@ def abs_interactions(): url = urls.urls['abs']['url'] dmanager = dm.DownloadManager(pkg='pypath') - desc, item, downloader, dest = dmanager._download(url, backend='curl', ssl_verifypeer=0, ssl_verifyhost=0) - print(item, dest) + desc, item, downloader, dest = dmanager._download( + url, + backend='curl', + ssl_verifypeer=0, + ssl_verifyhost=0 + ) + c = item.open() data = c.result data = [[x.replace('*', '') for x in xx.split('\t')] - for xx in data.split('\n')] + for xx in data] for d in data: