This file contains 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(): | |
os.mkdir("download/" + cat) | |
for index, row in df.iterrows(): | |
category = row.loc["English Package Name"] | |
file_name = f"{row.loc['Book Title']}_{row.loc['Edition']}".replace('/','-').replace(':','-') |
NewerOlder