def check_page(page):
    soup = Parser.get_soup(page)
    try:
        next_page = soup.find('li', "bx-pag-next")
        return next_page.a['href']
    except Exception:
        return None
Пример #2
0
def check_page(page):
    soup = Parser.get_soup(page)
    try:
        next_page = soup.find('a', "pagination__item_next")
        return URL_CORE + next_page['href']
    except Exception:
        return None
Пример #3
0
def check_page(page):
    soup = Parser.get_soup(page)
    try:
        next_page = soup.find_all('li', "bx-pax")[1]
        return next_page.parent['href']
    except Exception:
        return None
Пример #4
0
def check_page(page):
    soup = Parser.get_soup(page)
    try:
        next_page = soup.find('a', "next page-numbers")
        return next_page['href']
    except Exception:
        return None
def get_phones_soups(page):
    phones = Parser.get_soup(page).find('div', 'items productList').find_all(
        'a', "name")
    return phones
def get_phones_soups(page):
    phones = Parser.get_soup(page).find_all('div', "pull-right rel")
    return phones
def check_last_page(page):
    soup = Parser.get_soup(page)
    last_page = soup.find('li', "last")
    return last_page.a.text
Пример #8
0
def get_phones_soups(page):
    phones = Parser.get_soup(page).find_all('a', "card-text")
    return phones
Пример #9
0
def get_phones_soups(page):
    phones = Parser.get_soup(page).find_all('a', "product-title")
    return phones
Пример #10
0
def get_phones_soups(page):
    phones = Parser.get_soup(page).find_all('div', "item-disc")
    return phones
def get_phones_soups(page):
    phones = Parser.get_soup(page).find_all('div', "oneItem")
    return phones
Пример #12
0
def get_phones_soups(page):
    phones = Parser.get_soup(page).find_all('tr', attrs={"height": 20})[5:]
    return phones
Пример #13
0
def get_phones_soups(page):
    phones = Parser.get_soup(page).find('div', 'load-container').find_all(
        'div', "product-content clearfix")
    return phones