This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd, os, shutil | |
df = pd.read_excel("Free+English+textbooks.xlsx") | |
for cat in df["English Package Name"].unique(): | |
try: | |
os.mkdir("download/" + cat) | |
except FileExistsError: | |
print("File exists errror") | |
except: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Created on Thu Feb 6 16:40:54 2020 | |
@author: Pedazo | |
""" | |
from sys import argv | |
import pandas as pd | |