Skip to content

Instantly share code, notes, and snippets.

@kirkbyo
kirkbyo / download.py
Last active August 29, 2015 14:21
Downloads Youtube Videos from .txt
import pafy
""" Dependencies:
- pafy: https://github.com/np1/pafy
"""
fileObject = open("songs.txt", "r")
fileText = fileObject.read()
links = fileText.split("\n")
@kirkbyo
kirkbyo / capital.py
Last active August 29, 2015 14:13
.txt Capital Word Finder
# Scans threw a .txt file and prints out all the words that start with a capital letter
class Capital:
# Header Setup
print("="*29)
print("="*3 + " Capital Letter Finder " + "="*3)
print("\n")
# File Setup
fileName = raw_input("File name: ")
fileObject = open(fileName, "r")