This file contains hidden or 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
# python 3 | |
# shopper.py | |
''' | |
This is a very simple and effective program. | |
Open multiple shopping sites for one search parameter at one go | |
Search for a product term as a command prompt argument | |
Multiple words separated by space is fine | |
e.g. shooper.py iphone 6 | |
''' |
This file contains hidden or 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
# Python 3.4 | |
import os | |
# Windows uses backward slash; Mac & Linux uses forward slash | |
# But python will always recognise forward slash | |
# Python recognises everything as a sequence of unicode characters (string) | |
# Computer manages directories as a sequence of bytes (byte stream)\ | |
# To read or write unicode characters from byte stream, encoding is required | |
# Different OS use different methods for encoding |
This file contains hidden or 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
# Python 3 | |
# XKCDDownloader.py | |
######################################################################################################################## | |
# Algorithm | |
# 1) Open the latest page of XKCD | |
# 2) Download the image, title and alternate text from the page and save the images in specified folder | |
# 3) Build a html file which contains the alt, title and src in a html file | |
# 4) If any error in download skip the page | |
# 5) Find the previous page url from current page and repeat steps 2, 3 & 4 | |
# 6) Continue until you find the very 1st comic |
This file contains hidden or 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
#python 3 | |
#Read the list of names and email ids from an excel file and populate them in a text file | |
import openpyxl | |
import os | |
import time | |
def fetchUnpaidMembers(max_row, max_col, sheet): | |
member_count = 0 | |
mydict = {} |
This file contains hidden or 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
#Python 3 | |
#CombinePDF.py | |
#Gets inputs of 2 PDF file names from user and combines them into 1 | |
import PyPDF2 | |
import os | |
def getFileNameFromUser (file): | |
pdf_file_name = input("Enter {0} name: ".format(file)) | |
if pdf_file_name in os.listdir(): |
NewerOlder