Beispiel #1
0
def test_movie_page_parsing():
    with open('fixtures/movies_page.html') as f:
        items = parsers.parse_movie_page(f.read())
        assert len(items) == 25
Beispiel #2
0
def test_movie_page_parsing():
    with open('fixtures/movies_page.html') as f:
        items = parsers.parse_movie_page(f.read())
        assert len(items) == 25
Beispiel #3
0
def list_movies(page):
    html = utils.fetch_html(MOVIES_URL % page)
    return parsers.parse_movie_page(html)
Beispiel #4
0
def list_genre(genre, page):
    url = GENRES[genre]
    url += '?page-%s' % page
    html = utils.fetch_html(url)
    return parsers.parse_movie_page(html)
Beispiel #5
0
def list_series(page, order='view'):
    html = utils.fetch_html(SERIES_URL % (order, page))
    return parsers.parse_movie_page(html)
Beispiel #6
0
def list_genre(genre, page):
    url = GENRES[genre]
    url += "?page-%s" % page
    html = utils.fetch_html(url)
    return parsers.parse_movie_page(html)
Beispiel #7
0
def list_series(page, order="view"):
    html = utils.fetch_html(SERIES_URL % (order, page))
    return parsers.parse_movie_page(html)