Skip to content

Instantly share code, notes, and snippets.

@vinovator
vinovator / wma_finder.py
Created March 29, 2017 09:23
Find files of a specific extension from a root directory and delete them !!
# wma_finder.py
# Python 3.5
import os
path = "D:\Vinoth\Songs"
file_extn = ".wma
file_count = 0
with open(path + "\wma_deleted.txt", "a") as del_log:
@vinovator
vinovator / azure_ocr.py
Last active July 27, 2017 20:07
Python script to analyze and read text from image URLs using Micorost Azure Cognitive services OCR API
# azure_ocr.py
# Python 3.5
"""
Python script to analyze and read text from image URLs using Micorost Azure Cognitive services OCR API
"""
from IGNORE import azure_secrets # To fetch API endpoint and key
import requests
import json
# -*- coding: utf-8 -*-
"""
Created on Tue Apr 16 15:45:52 2019
@author: Vinoth_Subramanian
Parse through multiple excel files in a folder heirarchy and consolidate
Only limitation - Since the copy is done through pandas, only the values -
- from the sheets will be copied. Formulas and formatting will be ignored
"""
@vinovator
vinovator / Consolidate_excel_sheets_with formatting
Created April 30, 2019 21:02
Parse through multiple excel files in a folder hierarchy and consolidate Using win32com library so that sheets get copied with formatting intact
# -*- coding: utf-8 -*-
"""
Created on Tue Apr 16 15:45:52 2019
@author: Vinoth_Subramanian
Parse through multiple excel files in a folder heirarchy and consolidate
Using win32com library so that sheets get copied with formatting intact
"""
import os
@vinovator
vinovator / ConsolidatePDF.py
Created April 5, 2020 20:01
From a given folder, consolidate all PDFs into one
# -*- coding: utf-8 -*-
"""
Python 3
ConsolidatePDF.py
From a given folder, consolidate all PDFs into one
"""
from PyPDF2 import PdfFileMerger
import os