summaryrefslogtreecommitdiff
path: root/spotCheck.py
blob: 5c0e54d1443b0bb62c169a014aadf899cdadc61e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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])