Esempio n. 1
0
def test_parse_episodes():
    with open('fixtures/series_page.html') as f:
        result = parsers.parse_episodes(f.read())
        assert len(result) == 3
Esempio n. 2
0
def test_parse_episodes():
    with open('fixtures/series_page.html') as f:
        result = parsers.parse_episodes(f.read())
        assert len(result) == 3
Esempio n. 3
0
def list_episodes(url):
    movie_html = utils.fetch_html(url)
    player_link =  parsers.get_player_link(movie_html)
    html = utils.fetch_html(player_link)
    return parsers.parse_episodes(html)