summaryrefslogtreecommitdiff
path: root/spotCheck.py
diff options
context:
space:
mode:
authorssstvinc2 <sstvinc2@gmail.com>2017-03-06 18:12:59 -0500
committerssstvinc2 <sstvinc2@gmail.com>2017-03-06 18:12:59 -0500
commitf8c6b0084e7d0928121d4c05d3b1f47b10c303c7 (patch)
treeb82e1fc2034ab454a9e3bb38cb08d0a80dbeec17 /spotCheck.py
parent0ce27f6e13a139c2fe06082dfb10a35d213fc7a7 (diff)
Added spotCheck ability. Other minor tweaks
Diffstat (limited to 'spotCheck.py')
-rwxr-xr-xspotCheck.py38
1 files changed, 38 insertions, 0 deletions
diff --git a/spotCheck.py b/spotCheck.py
new file mode 100755
index 0000000..5c0e54d
--- /dev/null
+++ b/spotCheck.py
@@ -0,0 +1,38 @@
+#!/usr/bin/env python3
+
+
+from parser import *
+from unbiasedObjects import *
+import sys
+
+def spotCheck(src):
+
+ fns = {'hil' : buildTheHill,
+ 'cbs' : buildCBS,
+ 'npr' : buildNPR,
+ 'fox' : buildFoxNews,
+ 'gdn' : buildGuardian,
+ 'blz' : buildBlaze,
+ 'bbc' : buildBBC,
+ 'nbc' : buildNBC}
+
+ data=fns[src]()
+
+ print('H1s:\n--------------')
+ for h in data.h1Arr:
+ print(h.title)
+
+ print('\n\nH2s:\n--------------')
+ for h in data.h2Arr:
+ print(h.title)
+
+ print('\n\nH3s:\n--------------')
+ for h in data.h3Arr:
+ print(h.title)
+
+ print('\n\n')
+
+
+
+if __name__=='__main__':
+ spotCheck(sys.argv[1])