def get_phones(page=PAGE_URL):
    phones_info = {}
    for i in range(1, int(check_last_page(page)) + 1):
        phones_info.update(
            Parser.get_phones_from_page(page % i, get_phones_soups,
                                        get_phone_contents))
    return phones_info
Beispiel #2
0
def get_phones(page=PAGE_URL):
    phones_info = {}
    while True:
        phones_info.update(
            Parser.get_phones_from_page(page, get_phones_soups,
                                        get_phone_info))
        page = check_page(page)
        if not page:
            break
    return phones_info
def get_phones(page=PAGE_URL % ITEMS_PER_PAGE):
    phones_info = {}
    while True:
        phones_info.update(
            Parser.get_phones_from_page(page, get_phones_soups,
                                        get_phone_info))
        page = check_page(page)
        if not page:
            break
        page = URL_CORE + page
    return phones_info