- Example Usage
from saveImagesFromcsv import SaveImgFromCSV
newInstance = SaveImgFromCSV('./csv/women-clothing-fashion.csv', delimiter=';')
newInstance.run('women-clothings')
class SaveImgFromCSV
does your stuff for you...
newInstance = SaveImgFromCSV()
creates a new object instance to variable newInstance
, but needs parameters...
- csv_file_name:
required
: give the filepath / filename to your csv file - delimiter:
optional
: default:','
: the delimiter in csv file (the sample csv files are separated by';'
)
getIndices()
=> returns array of Indices matching the following...
- "MainImage"
- "Image2"
- "Image3"
- "Image4"
- "Image5"
- "Image6"
- "Image7"
- "Image8"
run(directory, startIndex=0)
=> does the saving for you
- directory: where the directory should be
- startIndex: where to start saving
- urllib
- csv
- os (if I get the time to update this repo)
- ssl