0

I am trying to extract images from an excel file to the disk using zipfile python

import zipfile
InputName = "TestExcel.xlsx"

Extracteds = zipfile.ZipFile(InputName).namelist()
ImageFiles = [E for E in Extracteds if E.count('.jpg') or E.count('.jpeg') ]

for i in ImageFiles:
    print "----> ",zipfile.ZipFile(InputName).extract(i)

How to get the cell location of those images?

Here I am getting the path of images printed out and all images extracted to the folder on disk

Dharman
  • 30,962
  • 25
  • 85
  • 135
  • this will help https://stackoverflow.com/a/52069292/9050514 – deadshot Aug 07 '20 at 10:17
  • I am trying to install win32 client in ubuntu machine, but it throws an error for _winreg which is only supported by windows as stated here https://docs.python.org/release/2.1.2/lib/module--winreg.html @deadshot – Desarrollador Rucha Aug 08 '20 at 05:25

0 Answers0