<file_sep>import sys
import xml.dom.minidom
import csv

document = xml.dom.minidom.parse(sys.argv[1])

header = []

table = document.getElementsByTagName('table')
strong = document.getElementsByTagName('strong')
stockinfo = []
for b in table[3].getElementsByTagName('b'):
	for node in b.childNodes:
		if node.nodeType == node.TEXT_NODE:
			stockinfo.append(node.nodeValue)
for node in strong[0].childNodes:
	if node.nodeType == node.TEXT_NODE:
		name = node.nodeValue


stockinfo[0] = stockinfo[0][1:]
stockinfo[1] = stockinfo[1][1:]
print("------------------------------------------------")
print("COMPANY PROFILE: " + name)
print("LAST: " + stockinfo[0])
if stockinfo[2] > stockinfo[0]:
	print("CHANGE: +" + stockinfo[1])
else:
	print("CHANGE: -" + stockinfo[1])
print("OPEN: " + stockinfo[2])
print("PREV " + stockinfo[7])
print("HIGH: " + stockinfo[3])
print("LOW: " + stockinfo[8])
print("ASK: " + stockinfo[4])
print("BID: " + stockinfo[9])
print("VOLUME: " + stockinfo[5])
print("OPEN INT: " + stockinfo[10])<file_sep>#!/bin/sh
#blahad
git add .
sleep 1
printf "Enter commit message: "
read message
git commit -m "$message"
sleep 1
git push origin master
<file_sep># stonks
<h3><u>Projects Description:</u></h3>

<b>alpha</b>: A real-time stock terminal based off bash, python, and TagSoup. Run the bash script and enter the symbol of the stock you want and you will recieve real-time information. Check the screenshot for a sample.
<file_sep>#!/bin/bash

echo "Please type in the stock symbol: "
read input
./data.sh $input

<file_sep>java -jar tagsoup-1.2.1.jar --files now.html<file_sep>#!/bin/bash

while read SYM
do 
	if [ $1 = $SYM ]
	then
		wget -q -O - http://www.eoddata.com/stockquote/NASDAQ/$1.htm > now.html
		java -jar tagsoup-1.2.1.jar --files now.html 2> errorOutput.log > output.log &
		sleep 2
		python3 scraper.py now.xhtml
		exit 1
	fi
done < symbolList

echo "Sorry, your symbol does not exist within the Exchange List"
