Open ndarville opened 10 years ago
__init__.py:
__init__.py
parsers = """ inform.InformationParser dr.DRParser jp.JPParser tv2.TV2Parser b.BerlingskeParser """.split()
models.py:
models.py
PublicationDict = { "www.information.dk": "Information", "www.dr.dk": "DR", "jyllands-posten.dk": "Jyllands Posten", "tv2.dk": "TV2", "www.b.dk": "Berlingske" }
views.py:
views.py
SOURCES = '''information.dk dr.dk jyllands-posten.dk tv2.dk b.dk'''.split()
for parser in parsers: $ python parsers/test_parser.py foo.Bar
for parser in parsers: $ python parsers/test_parser.py foo.Bar foo.test_url
Steps
__init__.py
:models.py
:views.py
:Tests