From 6387abb6a44ae74c5bf0ea0644c95163803039e3 Mon Sep 17 00:00:00 2001 From: HarshitGupta11 <50410275+HarshitGupta11@users.noreply.github.com> Date: Wed, 24 Jul 2019 15:55:44 +0530 Subject: [PATCH] Delete req_data.py --- req_data.py | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 req_data.py diff --git a/req_data.py b/req_data.py deleted file mode 100644 index 82016c5..0000000 --- a/req_data.py +++ /dev/null @@ -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)