mirror of
https://github.com/Priyatham-sai-chand/compara-deep-learning.git
synced 2026-10-05 08:11:34 -07:00
Delete req_data.py
This commit is contained in:
parent
6c0d50901a
commit
6387abb6a4
1 changed files with 0 additions and 26 deletions
26
req_data.py
26
req_data.py
|
|
@ -1,26 +0,0 @@
|
|||
import os
|
||||
import pandas
|
||||
import sys
|
||||
import urllib.request as urllib
|
||||
import pandas as pd
|
||||
|
||||
|
||||
lf=[]
|
||||
|
||||
def download_data(x,dir_name):
|
||||
fname=x.split("/")[-1]
|
||||
path=os.path.join(dir_name,fname)
|
||||
urllib.urlretrieve(x,path)
|
||||
|
||||
def get_data_file(file,dir):
|
||||
if not os.path.isfile(file):
|
||||
print("The specified file does not exist!!!")
|
||||
sys.exit(1)
|
||||
|
||||
with open(file,"r")as f:
|
||||
lf=f.read().splitlines()
|
||||
|
||||
if not os.path.exists(dir):
|
||||
os.mkdir(dir)
|
||||
for x in lf:
|
||||
download_data(x,dir)
|
||||
Loading…
Reference in a new issue