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 sys | |
import urllib2 | |
import xml.etree.ElementTree as etree | |
import subprocess | |
def parseBoard(boardData, size): | |
board = [] | |
rowLength = 2 * size - 1 |
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 urllib2 | |
from BeautifulSoup import BeautifulSoup, NavigableString | |
import re | |
def getDomainURL(url): | |
slashToLookFor = 1 | |
if url.find("http://") > -1 or url.find("https://") > -1: | |
slashToLookFor = 3 | |
endIndex = 0 | |
for i in range(0, slashToLookFor): |
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 csv | |
from datetime import datetime | |
import json | |
def processInput(filePath): | |
with open(filePath, 'r') as f: | |
deserializedJSON = json.load(f) | |
notesData = deserializedJSON['notes'] | |
return notesData |