Created
February 10, 2020 21:53
-
-
Save erenkeskin/81d51fd7bbc48b4b36f67483574675b5 to your computer and use it in GitHub Desktop.
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 xlsxwriter | |
from xlsxwriter.utility import xl_rowcol_to_cell | |
import xlrd | |
hepsiburadaFiyat= r'C:\Users\xxx\Desktop\hepsiburada-fiyat.xlsx' | |
hepsiburadaSablon= r'C:\Users\xxx\Desktop\hepsiburada-sablon.xlsx' | |
wbk = xlsxwriter.Workbook('hepsiburada-sablon2.xlsx') | |
wks = wbk.add_worksheet() | |
for fiyat in xlrd.open_workbook(hepsiburadaFiyat).sheets(): | |
for fiyatSatir in range(fiyat.nrows): | |
barkod = fiyat.cell(fiyatSatir, 0) | |
fiyatEtiketi = fiyat.cell(fiyatSatir, 1) | |
for sablon in xlrd.open_workbook(hepsiburadaSablon).sheets(): | |
for sablonSatir in range(sablon.nrows): | |
sablonBarkod = sablon.cell(sablonSatir, 1) | |
if sablonBarkod.value == barkod.value: | |
findedCell = xl_rowcol_to_cell(sablonSatir, 1) | |
changingCell = xl_rowcol_to_cell(sablonSatir, 5) | |
print(findedCell) | |
wks.write(changingCell, fiyatEtiketi.value) | |
wbk.close() | |
print("Program sonlandi") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment