diff options
author | Matt Singleton <matt@xcolour.net> | 2017-06-02 11:34:43 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-02 11:34:43 -0400 |
commit | 0eaa69b2db5feb4095d09bf75d4123f960619e79 (patch) | |
tree | 4ee9a6c6047e9e9dc4a126e472756b0f9b529617 /spotCheck.py | |
parent | 0ac55bbafa02ad951c9f1708f1fbc7c8746d5fce (diff) | |
parent | a82318fbdfc1af624fd9bf9bbae316ad45f43611 (diff) |
Merge pull request #1 from sstvinc2/matt-refactor
Matt refactor
Diffstat (limited to 'spotCheck.py')
-rwxr-xr-x | spotCheck.py | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/spotCheck.py b/spotCheck.py deleted file mode 100755 index d1edda4..0000000 --- a/spotCheck.py +++ /dev/null @@ -1,41 +0,0 @@ -#!/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, - 'wat' : buildWashTimes, - 'csm' : buildCSM, - 'abc' : buildABC} - - 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]) |