Commit f0163767 authored by vdberg's avatar vdberg
Browse files

cleaned up

parent bde06335
Loading
Loading
Loading
Loading

.DS_Store

0 → 100644
+6 KiB

File added.

No diff preview for this file type.

brainstorming/data/cons.txt

deleted100644 → 0
+0 −41
Original line number Diff line number Diff line
Arthur H. Vandenberg
Robert A. Taft
John W. Bricker
Everett Dirksen
Clare Boothe Luce
Joseph McCarthy
Barry Goldwater
Ronald Reagan
William Rehnquist
Jeane Kirkpatrick
Edwin Meese
Orrin Hatch
Jack Kemp
Larry McDonald
Ron Paul
Antonin Scalia
Pat Buchanan
Dick Armey
Dick Cheney
Newt Gingrich
Donald Trump
George W. Bush
Mitt Romney
Tom DeLay
John R. Bolton
Clarence Thomas
Karl Rove
Jim DeMint
Condoleezza Rice
John Roberts
Michele Bachmann
Mike Pence
Rand Paul
Sarah Palin
Tim Scott
Scott Walker
Ted Cruz
Paul Ryan
Mike Lee
Marco Rubio
Tom Cotton
 No newline at end of file
+0 −18
Original line number Diff line number Diff line
import re
from settings import datadir


def find_name(gr):
    name = gr.split('||')[0][1:]
    m = re.search(r'\[\[(.*)\]\]', name)
    name = m.group()[2:-2]
    print(name)
    return name


def cons_from_wiki():
    consfn = datadir + '/cons_wiki.txt'
    with open(consfn, encoding='utf-8') as f:
        groups = f.read().split('\n|-\n')
        for gr in groups:
            find_name(gr)
 No newline at end of file

brainstorming/data/cons_wiki.txt

deleted100644 → 0
+0 −83

File deleted.

Preview size limit exceeded, changes collapsed.

+0 −6459

File deleted.

Preview size limit exceeded, changes collapsed.

Loading