Skip to content

Commit

Permalink
Finished implementing new cache/download manager in inputs.abs
Browse files Browse the repository at this point in the history
  • Loading branch information
npalacioescat committed Nov 19, 2024
1 parent d710b8f commit ab6abe7
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions pypath/inputs/abs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit ab6abe7

Please sign in to comment.